pgsql: Allow walreceiver configuration to change on reload

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

pgsql: Allow walreceiver configuration to change on reload

Álvaro Herrera
Allow walreceiver configuration to change on reload

The parameters primary_conninfo, primary_slot_name and
wal_receiver_create_temp_slot can now be changed with a simple "reload"
signal, no longer requiring a server restart.  This is achieved by
signalling the walreceiver process to terminate and having it start
again with the new values.

Thanks to Andres Freund, Kyotaro Horiguchi, Fujii Masao for discussion.

Author: Sergei Kornilov <[hidden email]>
Reviewed-by: Michael Paquier <[hidden email]>
Reviewed-by: Álvaro Herrera <[hidden email]>
Discussion: https://postgr.es/m/19513901543181143@...

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e6148032e4d27aec75c49264b47ad193405a919

Modified Files
--------------
doc/src/sgml/config.sgml                      |  23 ++++-
doc/src/sgml/high-availability.sgml           |   4 +-
src/backend/access/transam/xlog.c             | 136 +++++++++++++++++---------
src/backend/access/transam/xlogreader.c       |   6 +-
src/backend/postmaster/startup.c              |  38 ++++++-
src/backend/replication/walreceiver.c         |   6 +-
src/backend/utils/misc/guc.c                  |   6 +-
src/backend/utils/misc/postgresql.conf.sample |   3 -
src/include/access/xlog.h                     |   1 +
src/test/recovery/t/001_stream_rep.pl         |  24 ++++-
10 files changed, 179 insertions(+), 68 deletions(-)