Add option to control snapshot export to CREATE_REPLICATION_SLOT

Peter Eisentraut <peter_e@gmx.net>

Commit: eb4da3e3807d2054bb05c3eb201cb9a363682f09
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2017-03-14T21:34:22Z
Releases: 10.0
Add option to control snapshot export to CREATE_REPLICATION_SLOT

We used to export snapshots unconditionally in CREATE_REPLICATION_SLOT
in the replication protocol, but several upcoming patches want more
control over what happens.

Suppress snapshot export in pg_recvlogical, which neither needs nor can
use the exported snapshot.  Since snapshot exporting can fail this
improves reliability.

This also paves the way for allowing the creation of replication slots
on standbys, which cannot export snapshots because they cannot allocate
new XIDs.

Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>

Files

Documentation touched