pgsql: pg_basebackup: Add option to create replication slot

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_basebackup: Add option to create replication slot
Date: 2017-09-27 13:04:12
Message-ID: E1dxC0a-0003tC-RL@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)banck(at)credativ(dot)de>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3709ca1cf069cee24ef8000cb6a479813b5537df

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 16 +++++++
src/bin/pg_basebackup/pg_basebackup.c | 63 ++++++++++++++++++++++++----
src/bin/pg_basebackup/pg_receivewal.c | 3 +-
src/bin/pg_basebackup/pg_recvlogical.c | 4 +-
src/bin/pg_basebackup/receivelog.c | 18 --------
src/bin/pg_basebackup/receivelog.h | 1 -
src/bin/pg_basebackup/streamutil.c | 16 ++++---
src/bin/pg_basebackup/streamutil.h | 5 ++-
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 27 +++++++++++-
9 files changed, 112 insertions(+), 41 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-09-27 13:11:10 Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)
Previous Message Andrew Dunstan 2017-09-27 12:50:28 Re: ALTER enums (was Re: [COMMITTERS] pgsql: doc: first draft of Postgres 10 release notes)