pgsql: Make pg_basebackup use temporary replication slots

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make pg_basebackup use temporary replication slots
Date: 2017-01-16 12:58:31
Message-ID: E1cT6rn-0002wo-Hw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make pg_basebackup use temporary replication slots

Temporary replication slots will be used by default when wal streaming
is used and no slot name is specified with -S. If a slot name is
specified, then a permanent slot with that name is used. If --no-slot is
specified, then no permanent or temporary slot will be used.

Temporary slots are only used on 10.0 and newer, of course.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e7b020f786bf3b344f81d70aa423525fd4f44dfa

Modified Files
--------------
doc/src/sgml/ref/pg_basebackup.sgml | 25 ++++++++++++++++
src/bin/pg_basebackup/pg_basebackup.c | 45 +++++++++++++++++++++++++++-
src/bin/pg_basebackup/pg_receivexlog.c | 3 ++
src/bin/pg_basebackup/pg_recvlogical.c | 1 +
src/bin/pg_basebackup/receivelog.c | 22 ++++++++++++--
src/bin/pg_basebackup/receivelog.h | 6 ++--
src/bin/pg_basebackup/streamutil.c | 1 -
src/bin/pg_basebackup/streamutil.h | 1 -
src/bin/pg_basebackup/t/010_pg_basebackup.pl | 5 +++-
9 files changed, 101 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Magnus Hagander 2017-01-16 17:21:52 pgsql: Fix incorrect comparison due to bad merge
Previous Message Amit Kapila 2017-01-16 12:23:52 Re: pgsql: Fix cardinality estimates for parallel joins.