Re: Logfile created when not needed?

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Logfile created when not needed?
Date: 2006-09-24 17:52:48
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA0FBE2@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2006-09-24 19:54:35 Windows build farm failures
Previous Message Tom Lane 2006-09-24 17:48:27 Re: Logfile created when not needed?