Reopen logfile on SIGHUP

Поиск
Список
Период
Сортировка
От Anastasia Lubennikova
Тема Reopen logfile on SIGHUP
Дата
Msg-id 500a5371-ac19-ca7a-6be4-3eabd086104f@postgrespro.ru
обсуждение исходный текст
Ответы Re: Reopen logfile on SIGHUP
Re: Reopen logfile on SIGHUP
Список pgsql-hackers
Large percentage of postgres installations, for example PGDG packages 
for Debian/Ubuntu,
assume by default that log management will be handled by extrernals 
tools such as logrotate.

Unfortunately such tools have no way to tell postgres to reopen log file 
after rotation
and forced to use copy-truncate strategy that leads to a loss of log 
messages which is unacceptable.

Small patch in the attachment implements logfile reopeninig on SIGHUP.
It only affects the file accessed by logging collector, which name you 
can check with pg_current_logfile().

I hope you will find this feature useful.

-- 
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company


Вложения

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

Предыдущее
От: Patrick Krecker
Дата:
Сообщение: Re: TODO item for broken \s with libedit seems fixed
Следующее
От: Claudio Freire
Дата:
Сообщение: Re: [HACKERS] [PATCH] Vacuum: Update FSM more frequently