pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Sergei Kornilov <sk@zsrv.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
Date: Mon, 10 Feb 2020 16:46:04 +0100
Message-ID: <bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com> (raw)
In-Reply-To: <20200122055510.GH174860@paquier.xyz>
References: <E1irMhK-00021w-9z@gemulon.postgresql.org>
	<20200122055510.GH174860@paquier.xyz>

On 2020-01-22 06:55, Michael Paquier wrote:
> In the thread about switching primary_conninfo to be reloadable, we
> have argued at great lengths that we should never have the WAL
> receiver fetch by itself the GUC parameters used for the connection
> with its primary.  Here is the main area of the discussion:
> https://www.postgresql.org/message-id/20190217192720.qphwrraj66rht5lj@alap3.anarazel.de

The way I understood that discussion was that the issue is having both 
the startup process and the WAL receiver having possibly inconsistent 
knowledge about the current configuration.  That doesn't apply in this 
case, because the setting is only used by the WAL receiver.  Maybe I 
misunderstood.

> The previous thread was long enough so it can easily be missed.
> However, it seems to me that we may need to revisit a couple of things
> for this commit?  In short, the following things:
> - wal_receiver_create_temp_slot should be made PGC_POSTMASTER,
> similarly to primary_slot_name and primary_conninfo.
> - WalReceiverMain() should not load the parameter from the GUC context
> by itself.
> - RequestXLogStreaming(), called by the startup process, should be in
> charge of defining if a temp slot should be used or not.

That would be a reasonable fix if we think the above is really an issue.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (17+ messages)  latest in thread

Message-ID: <bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com>
Permalink:  ../bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com/
Also on:    postgresql.org/message-id/bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com

 · 

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@2ndquadrant.com, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org, sk@zsrv.org, andres@anarazel.de
  Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
  In-Reply-To: <bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com>
  References: <E1irMhK-00021w-9z@gemulon.postgresql.org> <20200122055510.GH174860@paquier.xyz> <bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com>

* 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