From: Michael Paquier <michael@paquier.xyz>
To: Andres Freund <andres@anarazel.de>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Sergei Kornilov <sk@zsrv.org>
Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
Date: Wed, 12 Feb 2020 14:13:06 +0900
Message-ID: <20200212051306.GB1464@paquier.xyz> (raw)
In-Reply-To: <20200210214604.pnfbunecbpvu224p@alap3.anarazel.de>
References: <E1irMhK-00021w-9z@gemulon.postgresql.org>
<20200122055510.GH174860@paquier.xyz>
<bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com>
<20200210214604.pnfbunecbpvu224p@alap3.anarazel.de>
On Mon, Feb 10, 2020 at 01:46:04PM -0800, Andres Freund wrote:
> I still architecturally don't find it attractive that the active
> configuration between walreceiver and startup process can diverge
> though. Imagine if we e.g. added the ability to receive WAL over
> multiple connections from one host, or from multiple hosts (e.g. to be
> able to get the bulk of the WAL from a cascading node, but also to
> provide syncrep acknowledgements directly to the primary), or to allow
> for logical replication without needing all WAL locally on a standby
> doing decoding. It seems not great if there's potentially diverging
> configuration (hot standby feedback, temporary slots, ... ) between
> those walreceivers, just depending on when they started. Here the model
> e.g. parallel workers use, which explicitly ensure that the GUC state is
> the same in workers and the leader, is considerably better, imo.
Yes, I still think that we should fix that inconsistency, mark the new
GUC wal_receiver_create_temp_slot as PGC_POSTMASTER, and add a note at
the top of RequestXLogStreaming() and walreceiver.c about the
assumptions we'd prefer rely to for the GUCs starting a WAL receiver.
> So I think adding more of these parameters affecting walreceivers
> without coordination is not going quite in the right direction.
Indeed. Adding more comments would be one way to prevent the
situation to happen here, I fear that others may forget this stuff in
the future.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, andres@anarazel.de, peter.eisentraut@2ndquadrant.com, pgsql-hackers@lists.postgresql.org, sk@zsrv.org
Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
In-Reply-To: <20200212051306.GB1464@paquier.xyz>
References: <E1irMhK-00021w-9z@gemulon.postgresql.org> <20200122055510.GH174860@paquier.xyz> <bdb12bd9-b5b0-198e-648e-a8258ccaefb6@2ndquadrant.com> <20200210214604.pnfbunecbpvu224p@alap3.anarazel.de> <20200212051306.GB1464@paquier.xyz>
* 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