Re: allow online change primary_conninfo
Sergei Kornilov <sk@zsrv.org>
From: Sergei Kornilov <sk@zsrv.org>
To: Andres Freund <andres@anarazel.de>
Cc: Michael Paquier <michael@paquier.xyz>, Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2019-03-02T10:49:51Z
Lists: pgsql-hackers
Attachments
- 0001_refactor_WaitForWALToBecomeAvailable_to_graceful_restart_source.patch (text/x-diff) patch
- 0002_restart_stream_source_on_conf_change.patch (text/x-diff) patch
Hello This might be not the right way, but I can't think of a better way to not switch to a different method than split of lastSourceFailed processing and starting new source. Something like refactoring in first attached patch. I move RequestXLogStreaming logic from lastSourceFailed processing and add new pendingRestartSource indicator. Second patch is mostly the same as previous version but uses new pendingRestartSource mechanism instead of lastSourceFailed. Thanks in advance! regards, Sergei
Commits
-
Allow walreceiver configuration to change on reload
- 1e6148032e4d 13.0 landed