pg_basebackup: Add option to create replication slot
authorPeter Eisentraut <peter_e@gmx.net>
Tue, 26 Sep 2017 20:07:52 +0000 (16:07 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 27 Sep 2017 12:49:47 +0000 (08:49 -0400)
commit3709ca1cf069cee24ef8000cb6a479813b5537df
treed54dbade52078b66be199c1402ed4ef9540828ce
parent59597e6485847ae40eab2e80ff04af3e8663f2d8
pg_basebackup: Add option to create replication slot

When requesting a particular replication slot, the new pg_basebackup
option -C/--create-slot creates it before starting to replicate from it.

Further refactor the slot creation logic to include the temporary slot
creation logic into the same function.  Add new arguments is_temporary
and preserve_wal to CreateReplicationSlot().  Print in --verbose mode
that a slot has been created.

Author: Michael Banck <michael.banck@credativ.de>
doc/src/sgml/ref/pg_basebackup.sgml
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_basebackup/pg_recvlogical.c
src/bin/pg_basebackup/receivelog.c
src/bin/pg_basebackup/receivelog.h
src/bin/pg_basebackup/streamutil.c
src/bin/pg_basebackup/streamutil.h
src/bin/pg_basebackup/t/010_pg_basebackup.pl