Re: rotatelogs integration in pg_ctl

Поиск
Список
Период
Сортировка
От Thomas Swan
Тема Re: rotatelogs integration in pg_ctl
Дата
Msg-id 56951.199.222.14.2.1081880618.squirrel@www.idigx.com
обсуждение исходный текст
Ответ на Re: rotatelogs integration in pg_ctl  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: rotatelogs integration in pg_ctl  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
<quote who="Peter Eisentraut">
> Thomas Swan wrote:
>> Is there a reason the postmasters cannot just close/reopen-recreate
>> the log file when a SIGHUP or other signal is issued like apache?
>
> Yes, because there is no "log file".  The postmaster writes to stdout or
> stderr.
>
>

Ok, my misunderstanding.  stdout/stderr are redirected to a file on
startup.  This is why when I move/rename the logfile I have to stop/start
postgresql to start appending to the empty file.

Would there be any interest in modifying postmaster to support native file
logging in addition to stderr and stdout output?  Are there any terrible
drawbacks that you could foresee?




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

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: FRONTEND in ecpg
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Lexing with different charsets