walreceiver uses a temporary replication slot by default
authorPeter Eisentraut <[email protected]>
Tue, 14 Jan 2020 13:07:11 +0000 (14:07 +0100)
committerPeter Eisentraut <[email protected]>
Tue, 14 Jan 2020 13:40:41 +0000 (14:40 +0100)
commit329730827848f61eb8d353d5addcbd885fa823da
treebc56c793767f2d367e668a530888822f264713b4
parentee4ac46c8eb289bc200d0fd682e75d11b4c55b5a
walreceiver uses a temporary replication slot by default

If no permanent replication slot is configured using
primary_slot_name, the walreceiver now creates and uses a temporary
replication slot.  A new setting wal_receiver_create_temp_slot can be
used to disable this behavior, for example, if the remote instance is
out of replication slots.

Reviewed-by: Masahiko Sawada <[email protected]>
Discussion: https://www.postgresql.org/message-id/CA%2Bfd4k4dM0iEPLxyVyme2RAFsn8SUgrNtBJOu81YqTY4V%2BnqZA%40mail.gmail.com
doc/src/sgml/config.sgml
src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
src/backend/replication/walreceiver.c
src/backend/utils/misc/guc.c
src/backend/utils/misc/postgresql.conf.sample
src/include/replication/walreceiver.h