Re: Current log files when rotating?
От | Steve Atkins |
---|---|
Тема | Re: Current log files when rotating? |
Дата | |
Msg-id | B1B99AC5-EB52-41A8-ABC6-F82509D9DB9A@blighty.com обсуждение исходный текст |
Ответ на | Re: Current log files when rotating? (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: Current log files when rotating?
|
Список | pgsql-general |
On Nov 10, 2008, at 1:35 PM, Tom Lane wrote: > Alvaro Herrera <alvherre@commandprompt.com> writes: >> It seems that there is enough need for this feature, that it has been >> implemented multiple times -- but most of them will fail in corner >> cases. Seems an obvious candidate for an in-core function ... > > ... which will still fail in corner cases. Not to mention the race > condition when the logger has just/is about to switch. Also, it's going to be a fairly rare app that will need to both look at the current logfile and access the database, so providing visibility via a sql function seem clunky. Maybe just have the logger maintain a symlink to the current logfile, or log to a static filename and only use a dynamically generated filename when renaming the log file during rotation? Cheers, Steve
В списке pgsql-general по дате отправления: