pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Euler Taveira <euler@timbira.com.br>
Cc: zhq651@126.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15791: WalSndCtl->sync_standbys_defined modified too late
Date: Tue, 7 May 2019 12:37:45 +0900
Message-ID: <20190507033745.GJ1499@paquier.xyz> (raw)
In-Reply-To: <CAHE3wgjVViFz2FW6srodA5yc_rF+3t9GgHpaGAP+2qkn4XQa_Q@mail.gmail.com>
References: <15791-eac704d9ebfbdfea@postgresql.org>
	<CAHE3wgjVViFz2FW6srodA5yc_rF+3t9GgHpaGAP+2qkn4XQa_Q@mail.gmail.com>

On Sun, May 05, 2019 at 10:16:39PM -0300, Euler Taveira wrote:
> This is not a bug. This question is suitable for -hackers.
> 
> Short answer is: yes. When you modify synchronous_standby_names and
> reload postgresql.conf, checkpointer get SIGHUP and it calls
> UpdateSharedMemoryConfig() -- see CheckpointerMain() circa 'if
> (got_SIGHUP)'.

There could be always some delay between the moments SIGHUP gets
processed across the different processes as we are talking mainly
about running ProcessConfigFile(OGC_SIGHUP) which can happen for
normal backends once every query, but the change will be effective.
--
Michael

Attachments:

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

view thread (3+ messages)

Message-ID: <20190507033745.GJ1499@paquier.xyz>
Permalink:  ../20190507033745.GJ1499@paquier.xyz/
Also on:    postgresql.org/message-id/20190507033745.GJ1499@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-bugs@postgresql.org
  Cc: michael@paquier.xyz, euler@timbira.com.br, zhq651@126.com
  Subject: Re: BUG #15791: WalSndCtl->sync_standbys_defined modified too late
  In-Reply-To: <20190507033745.GJ1499@paquier.xyz>
  References: <15791-eac704d9ebfbdfea@postgresql.org> <CAHE3wgjVViFz2FW6srodA5yc_rF+3t9GgHpaGAP+2qkn4XQa_Q@mail.gmail.com> <20190507033745.GJ1499@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