pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: walreceiver uses a temporary replication slot by default
Date: Tue, 14 Jan 2020 13:57:34 +0000
Message-ID: <E1irMhK-00021w-9z@gemulon.postgresql.org> (raw)

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 <masahiko.sawada@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/CA%2Bfd4k4dM0iEPLxyVyme2RAFsn8SUgrNtBJOu81YqTY4V%2BnqZA%40mail...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/329730827848f61eb8d353d5addcbd885fa823da

Modified Files
--------------
doc/src/sgml/config.sgml                           | 20 +++++++++++
.../libpqwalreceiver/libpqwalreceiver.c            |  4 +++
src/backend/replication/walreceiver.c              | 41 ++++++++++++++++++++++
src/backend/utils/misc/guc.c                       |  9 +++++
src/backend/utils/misc/postgresql.conf.sample      |  1 +
src/include/replication/walreceiver.h              |  7 ++++
6 files changed, 82 insertions(+)



view thread (17+ messages)  latest in thread

Message-ID: <E1irMhK-00021w-9z@gemulon.postgresql.org>
Permalink:  ../E1irMhK-00021w-9z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1irMhK-00021w-9z@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
  In-Reply-To: <E1irMhK-00021w-9z@gemulon.postgresql.org>
  References: <E1irMhK-00021w-9z@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox