pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
Subject: [PATCH v2 1/1] don't emit shutdown messages for 'postgres -C' with runtime-computed GUCs
Date: Tue, 15 Mar 2022 15:36:41 -0700

---
 src/backend/postmaster/postmaster.c | 4 ++++
 1 file changed, 4 insertions(+)

inline patch 1: src/backend/postmaster/postmaster.c (+4/-0 lines) download inline-1.patchdiff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 80bb269599..bf48bc6326 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -1066,6 +1066,10 @@ PostmasterMain(int argc, char *argv[]) false, false); puts(config_val ? config_val : ""); + + /* don't emit shutdown messages */ + SetConfigOption("log_min_messages", "PANIC", PGC_INTERNAL, PGC_S_OVERRIDE); + ExitPostmaster(0); } -- 2.25.1
--82I3+IH0IqGh5yIs--

Message-ID: <no-message-id-1980@localhost>
Permalink:  ../no-message-id-1980@localhost/
Also on:    postgresql.org/message-id/no-message-id-1980@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: nathandbossart@gmail.com
  Subject: Re: [PATCH v2 1/1] don't emit shutdown messages for 'postgres -C' with runtime-computed GUCs
  In-Reply-To: <no-message-id-1980@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox