Re: Logfile created when not needed?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Logfile created when not needed?
Дата
Msg-id 8253.1159120107@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Logfile created when not needed?  ("Magnus Hagander" <mha@sollentuna.net>)
Ответы Re: Logfile created when not needed?  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-hackers
"Magnus Hagander" <mha@sollentuna.net> writes:
> 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.

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).

I'm not sure how sensible it really is to switch dynamically between
logging to stderr and logging someplace else, but as long as the code
can support that, why not allow it ...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] Bad bug in fopen() wrapper code
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Logfile created when not needed?