pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Sergei Kornilov <sk@zsrv.org>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
Date: Thu, 19 Mar 2020 11:26:17 +0900
Message-ID: <20200319022617.GP214947@paquier.xyz> (raw)
In-Reply-To: <3389391584476523@vla1-3991b5027d7d.qloud-c.yandex.net>
References: <E1irMhK-00021w-9z@gemulon.postgresql.org>
	<20200122055510.GH174860@paquier.xyz>
	<753391579708726@iva3-77ae5995f07f.qloud-c.yandex.net>
	<20200216060314.GC97911@paquier.xyz>
	<15987771581947824@iva1-398527a32f9a.qloud-c.yandex.net>
	<20200218024338.GB4176@paquier.xyz>
	<3389391584476523@vla1-3991b5027d7d.qloud-c.yandex.net>

On Tue, Mar 17, 2020 at 11:39:11PM +0300, Sergei Kornilov wrote:
> We need this change to set is_temp_slot properly. PrimarySlotName
> GUC can usually be an empty string, so just "slotname != NULL" is
> not enough.

Yep, or a temporary slot would never be created even if there is no
slot defined, and the priority goes to primary_slot_name if set.

> I attached patch with this change.

Thanks, I have added a new open item for v13 to track this effort:
https://wiki.postgresql.org/wiki/PostgreSQL_13_Open_Items
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (17+ messages)

Message-ID: <20200319022617.GP214947@paquier.xyz>
Permalink:  ../20200319022617.GP214947@paquier.xyz/
Also on:    postgresql.org/message-id/20200319022617.GP214947@paquier.xyz

 · 

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: michael@paquier.xyz, sk@zsrv.org, peter@eisentraut.org, pgsql-hackers@lists.postgresql.org, andres@anarazel.de
  Subject: Re: pgsql: walreceiver uses a temporary replication slot by default
  In-Reply-To: <20200319022617.GP214947@paquier.xyz>
  References: <E1irMhK-00021w-9z@gemulon.postgresql.org> <20200122055510.GH174860@paquier.xyz> <753391579708726@iva3-77ae5995f07f.qloud-c.yandex.net> <20200216060314.GC97911@paquier.xyz> <15987771581947824@iva1-398527a32f9a.qloud-c.yandex.net> <20200218024338.GB4176@paquier.xyz> <3389391584476523@vla1-3991b5027d7d.qloud-c.yandex.net> <20200319022617.GP214947@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