Re: A single escape required for log_filename

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: A single escape required for log_filename
Дата
Msg-id 496D1758.5080703@dunslane.net
обсуждение исходный текст
Ответ на Re: A single escape required for log_filename  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: A single escape required for log_filename  (Gregory Stark <stark@enterprisedb.com>)
Re: A single escape required for log_filename  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers

Stephen Frost wrote:
> Joshua,
>
> * Joshua D. Drake (jd@commandprompt.com) wrote:
>   
>> When I set it up, it automatically appended the time so I got:
>>
>> postgresql.log.1231878270
>>
>> That seems a bit, well wrong. If I say I want postgresql.log I should
>> get postgresql.log.
>>
>> Or am I completely cranked?
>>     
>
> No.  I agree with you completely.  I'm also well versed in the
> requirements of log handling and log rotation.  Debian handles this by
> passing a '-l' to pg_ctl (usually
> /var/log/postgresql/postgresql-X.Y-CLUSTER.log), rotation is handled
> by logrotate.
>
>   

Then Debian is (surprise!) not doing the smartest thing. Not using the 
logging collector means you miss several possible advantages, including 
CSV logs and protection against multiplexed log lines.

Surely a good log rotator allows a custom rotation action (in this case, 
connecting to postgres and calling 'select pg_rotate_logfile()' )


cheers

andrew


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: So, what locale should the regression tests run in?
Следующее
От: Alvaro Herrera
Дата:
Сообщение: reloptions with a "namespace"