pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: postmaster: Start syslogger earlier
Date: Wed, 30 Jan 2019 20:14:31 +0000
Message-ID: <E1gowFj-0000nz-5B@gemulon.postgresql.org> (raw)

postmaster: Start syslogger earlier

When the syslogger was originally
added (bdf8ef6925de6ea1a9330fa1ce32e1a315d07eb2), nothing was normally
logged before the point where it was started.  But since
f9dfa5c9776649f769d537dd0923003b35f128de, the creation of sockets
causes messages of level LOG to be written routinely, so those don't
go to the syslogger now.

To improve that, arrange the sequence in PostmasterMain() slightly so
that the syslogger is started early enough to capture those messages.

Discussion: https://www.postgresql.org/message-id/d5d50936-20b9-85f1-06bc-94a01c5040c1%402ndquadrant.com
Reviewed-by: Christoph Berg <christoph.berg@credativ.de>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/57431a911d3a650451d198846ad3194900666152

Modified Files
--------------
src/backend/postmaster/postmaster.c | 120 ++++++++++++++++++------------------
1 file changed, 60 insertions(+), 60 deletions(-)



Message-ID: <E1gowFj-0000nz-5B@gemulon.postgresql.org>
Permalink:  ../E1gowFj-0000nz-5B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gowFj-0000nz-5B@gemulon.postgresql.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: postmaster: Start syslogger earlier
  In-Reply-To: <E1gowFj-0000nz-5B@gemulon.postgresql.org>
  References: <E1gowFj-0000nz-5B@gemulon.postgresql.org>

* 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