Re: elog.c logic bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: elog.c logic bug?
Date: 2007-06-06 16:47:13
Message-ID: 4942.1181148433@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> If not I have missed something - why would the syslogger be trying to
> write to its output (possibly for the second time) regardless of what
> Log_destination is set to?

You're mistaken: within the syslogger process, stderr doesn't point to
the same place as the target file (it's normally the same as the
original postmaster stderr). The reason the code is set up to try to
write both stderr and the target file is to maximize the chance that an
internally generated error in syslogger will get reported *someplace*.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2007-06-06 16:54:59 Re: [RFC] GSoC Work on readonly queries done so far
Previous Message Matthew T. O'Connor 2007-06-06 16:17:11 Re: [RFC] GSoC Work on readonly queries done so far