Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNqvU-0007xj-NV for pgsql-bugs@arkaria.postgresql.org; Tue, 07 May 2019 03:37:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hNqvT-0005Mt-DC for pgsql-bugs@arkaria.postgresql.org; Tue, 07 May 2019 03:37:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNqvT-0005Lj-4q for pgsql-bugs@lists.postgresql.org; Tue, 07 May 2019 03:37:55 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hNqvR-0000b0-0m for pgsql-bugs@lists.postgresql.org; Tue, 07 May 2019 03:37:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A58432CB; Mon, 6 May 2019 23:37:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 06 May 2019 23:37:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=vj9B4fDwxHCJYbs3ftL/QjwkWI0 lr9MrPeyY9z2AqA4=; b=AWNKptbT6SR35ffk6cPwruGFnlTRxJ0PWlua94wbdHb PYeCTL/fMBvfQ5hb2gEJjPmOGTXdluYQ6STdoercT5sQFaBEdJ1axhV4WnB27CYK MEfSEFED0L3/qXdoLUrn0ixwE8JZrMQulmGEsOzIYt6Uod79ImqZ+x6KGKXA6wxU OY5qqfdjco8m3APLDYfNBFSaXuqCf4lCU9jjZW35ddqakroOtPqQ6vOXSkIJ35J0 ui7124M6oMHZfOYTHqT7cy50IjpEb/skq2ijjsbLk2kMQ2GXpBPOZs0B+EB1um06 MVcFfrRanLVgpFoTBEzoW6MH1FwjVC1AYW467aj1c0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=vj9B4f DwxHCJYbs3ftL/QjwkWI0lr9MrPeyY9z2AqA4=; b=MJHGoVidbwSsdDUFQd6GFj RQZHL5ieojjzSeJ9522Y1ku0h1k5YUxTAnjLmGgUcZk41IDo58SLQZQVsAIP7TJX 7Zb/7DFSaQtgK2SHk4JU6NXQafyumYg5Sv04nxxQZtNtch9VBVGUx9vGE0pzLZyN 45uIU3W5EWBKmis9clsj40hrZPL5F8j0zpc25CW+eLUTXfg5HFWMZn5Uli9FZUmi cxZq/Cm+WoxYnfap3Bs7qmL1sRVn3pCpJRRKTKddXYSfzvLcg9RNBRTGIbJ68oMH Go13G5v8inwq+D+CshnTNjmXThonEz4uh3hdz9aTkBl1q6W94EF7oHo0bxH8b+Aw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrjeelgdejfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduudekrddvgedurddvhedtrddujeegnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (mp76f1faae.ap.nuro.jp [118.241.250.174]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B5CBE4547; Mon, 6 May 2019 23:37:47 -0400 (EDT) Date: Tue, 7 May 2019 12:37:45 +0900 From: Michael Paquier To: Euler Taveira Cc: zhq651@126.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15791: WalSndCtl->sync_standbys_defined modified too late Message-ID: <20190507033745.GJ1499@paquier.xyz> References: <15791-eac704d9ebfbdfea@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u3W6riq+uV6J42Ub" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --u3W6riq+uV6J42Ub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 05, 2019 at 10:16:39PM -0300, Euler Taveira wrote: > This is not a bug. This question is suitable for -hackers. >=20 > 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 --u3W6riq+uV6J42Ub Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlzQ/YgACgkQnvQgOdby QH0/jw/+KwzdwlRZ5XGcwvws0l0yn6gDpz48HPgpqMBuMg/X1bsITiwVmSQL6iCG eOMhmnSGuiFBlzMg53iMRJSQJOAM/GgIYFlIASDFM5B3TXSJHW+1bGgU2LQ09fSZ rlwLu0qdYNfm5ahRnc3MzmY58ZfPVtCXcCCQZP0cWLaQqQLTUD6UX5hLXPG8O2WW 063g5Jb/H86HISSDWin9RpYXLEQP/txaL5gGkyWiatyt6ettuKWgdOPmsrFOBe4I zCnK81udme6k6kJ1MM7YmsDiAXNY8FdCo6qV7D/lkU/s8q/BhXKt1W+hhybkSLJH 7C5E0rp2BRFWsTHqBThTLIFRhsG5mLYgXUsNm17ZGo23/0ovtrlqrtX1L3RVcnxa /7AaOB36V4drohArZwLIzRRvj0dafT1tet8GNlco4oAEOx0AMFNN1gOJ50VyrafZ rcxHAtR2tF0Y8UQ8WzHvhakPdhQk76vSRH8inRsI5HgPKsMtal3iTV5hZfory2Oa qmuljdbaEI+ZyBvfu1SK8vXmdF4agEBZcQbxiYXbsEefXT6WOilyQot3N/K6ZL/3 aC29z4ltdlgvYz6xtPvQwST97V56uR99179gePRvy186WmQYFezNdYaMHl5AoJMt o5Rd0Wqd9vL1GSBpiXOsqGf/G2BN3S2Mk122szEPZJroZrOVlmg= =dFLE -----END PGP SIGNATURE----- --u3W6riq+uV6J42Ub--