Use PostgresSigHupHandler in more places

Enterprise / PostgreSQL - Robert Haas [postgresql.org] - 17 December 2019 18:03 UTC

There seems to be no reason for every background process to have its own flag indicating that a config-file reload is needed. Instead, let's just use ConfigFilePending for that purpose everywhere.

Patch by me, reviewed by Andres Freund and Daniel Gustafsson.

Discussion: http://postgr.es/m/CA+TgmoZwDk=BguVDVa+qdA6SBKef=PKbaKDQALTC_9qoz1mJqg@mail.gmail.com

1e53fe0e70 Use PostgresSigHupHandler in more places.
src/backend/postmaster/autovacuum.c | 30 ++++++++----------------------
src/backend/postmaster/bgwriter.c | 20 +++-----------------
src/backend/postmaster/checkpointer.c | 24 +++++-------------------
src/backend/postmaster/pgarch.c | 25 +++++--------------------
src/backend/postmaster/pgstat.c | 28 +++++++---------------------
src/backend/postmaster/walwriter.c | 20 +++-----------------
src/backend/replication/logical/launcher.c | 23 +++--------------------
src/backend/replication/logical/worker.c | 23 +++--------------------
8 files changed, 37 insertions(+), 156 deletions(-)

Upstream: git.postgresql.org


  • Share