Re: Logfile created when not needed? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Logfile created when not needed?
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0FBE2@algol.sollentuna.se
Whole thread Raw
In response to Re: Logfile created when not needed?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> > If I configure log_destination='eventlog', and then
> > redirect_stderr='on', PostgreSQL will attempt to create a
> logfile in
> > pg_log anyway.
>
> So don't do that --- redirect_stderr is only sensible to turn
> on if you mean to use logging to stderr.

I don't. Normally. But I had it turned on, then changed log_destination
and forgot..


> The reason we don't attempt to enforce this is that
> log_destination is legal to change after startup, whereas we
> can't change redirect_stderr on-the-fly (because existing
> backends wouldn't have their stderr tied to the right place).

Ok. Fair 'nuf.


//Magnus


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Logfile created when not needed?
Next
From: "Dave Page"
Date:
Subject: Windows build farm failures