Make pg_basebackup use temporary replication slots
Magnus Hagander <magnus@hagander.net>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +25 −0 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +44 −1 |
| src/bin/pg_basebackup/pg_receivexlog.c | modified | +3 −0 |
| src/bin/pg_basebackup/pg_recvlogical.c | modified | +1 −0 |
| src/bin/pg_basebackup/receivelog.c | modified | +20 −2 |
| src/bin/pg_basebackup/receivelog.h | modified | +4 −2 |
| src/bin/pg_basebackup/streamutil.c | modified | +0 −1 |
| src/bin/pg_basebackup/streamutil.h | modified | +0 −1 |
| src/bin/pg_basebackup/t/010_pg_basebackup.pl | modified | +4 −1 |