Re: allow online change primary_conninfo
От
Michael Paquier
Тема
Re: allow online change primary_conninfo
Дата
Msg-id
20181212043208.GI17695@paquier.xyz
Ответ на
Re: allow online change primary_conninfo (Sergei Kornilov)
Список
Дерево обсуждения
allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo "andres@anarazel.de" <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo "andres@anarazel.de" <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: Re: allow online change primary_conninfo David Steele <david@pgmasters.net>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Andres Freund <andres@anarazel.de>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Alvaro Herrera <alvherre@2ndquadrant.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: allow online change primary_conninfo Maxim Orlov <m.orlov@postgrespro.ru>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Fujii Masao <masao.fujii@gmail.com>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Thomas Munro <thomas.munro@gmail.com>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
Re: allow online change primary_conninfo Sergei Kornilov <sk@zsrv.org>
Re: allow online change primary_conninfo Michael Paquier <michael@paquier.xyz>
On Tue, Dec 11, 2018 at 11:59:08AM +0300, Sergei Kornilov wrote: >> but I think that this patch should document clearly that if >> primary_conninfo or primary_slot_name are changed then the WAL receiver >> is stopped immediately. > > Good idea, will change. + + walreceiver will be restarted after + primary_conninfo was changed. + Hm. It may be cleaner to use "WAL receiver" here for clarity. Perhaps that's a matter of state but that seems cleaner when referring to the actual process. The docs share both grammar, depending on the context. > If walreceiver will use primary_conninfo GUC at startup - i see no > reason to leave *conninfo in RequestXLogStreaming. These parameters > will be misleading, we request them, but not using for anything. Oh, indeed. My apologies for being confused here, I can see now your point. It seems to me that this is an extra cleanup caused by the recovery parameters switched to be GUCs, and not something that we should be changed as an effect to SIGHUP for primary_conninfo and primary_slot_name. So let's do this cleanup first. For this purpose, I am going to post a new thread with a proper patch, with in CC the folks who moved the recovery parameters to be GUCs. >> +$node_standby_2->reload; # should have effect without restart >> This does not wait for the change to be effective, so I think that you >> introduce a race condition for slow machines with this test, making it >> unstable. > > No, here is no race condition because just after this line we wait > this replication slot in upstream pg_catalog.pg_replication_slots > (get_slot_xmins routine). > Before reload we have no replication slot and should reconnect here > with replication slot. I can add some comment here. Good point, I have forgotten the call to get_slot_xmins() below. -- Michael
В списке pgsql-hackers по дате отправления