| От | Tom Lane |
|---|---|
| Тема | Re: rotatelog / logrotate with PostgreSQL |
| Дата | |
| Msg-id | 7067.1032890941@sss.pgh.pa.us обсуждение |
| Ответ на | Re: rotatelog / logrotate with PostgreSQL (Roland Roberts <roland@astrofoto.org>) |
| Ответы |
Re: rotatelog / logrotate with PostgreSQL
|
| Список | pgsql-general |
Roland Roberts <roland@astrofoto.org> writes:
> Tom> Should work to just pipe the postmaster's stderr into it, eg
> Tom> postmaster ... 2>&1 | logrotate ... &
> Huh? logrotate moves a log file, it doesn't log anything.
My mistake; I was assuming that that script did something else.
What PG is able to work with is a script that absorbs input on
stdin and sends it to a rotatable logfile. Surely there are some
of those out there.
> Does the postmaster close the log after writing?
If it did, how would it reopen it? It doesn't know where its stderr
points...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера