]> granicus.if.org Git - postgresql/commit
postmaster: Start syslogger earlier
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 16 Jan 2019 16:32:01 +0000 (17:32 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 30 Jan 2019 20:10:56 +0000 (21:10 +0100)
commit57431a911d3a650451d198846ad3194900666152
tree8767527ffb1e3c6090a8fb362036f23203f344cc
parent7ea38f045dad6bbb7fbe807f2486df7370bc0b0f
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>
src/backend/postmaster/postmaster.c