Re: serverlog rotation/functions

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: serverlog rotation/functions
Дата
Msg-id 200407161832.i6GIWj406590@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: serverlog rotation/functions  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Andreas Pflug wrote:
> Bruce Momjian wrote:
> 
> > 
> > This seems quite involved.  Can we get the basic functionality I
> > described first?
> 
> On the way.
> 
> > Also I am not sure how all this information is going
> > to be passed from the logging process to the backend requesting the
> > information, and it seems overly complicated.
> 
> There's *no* information passing from the logging process, with the 
> single exception of the latest logfile timestamp (if allowed). I'd 
> rather like to have that information from the logger, to be safe in case 
> the system time was manipulated and the last logfile is not the current one.
> The rest is just a reworked version of pg_dir_ls, with internal 
> knowledge of how the timestamp is formatted.

Oh, so you are hardcoding the logfile name so you can interpret the
timestamp from that?  It seems cleaner to allow the admin to specify
whatever log pattern the want.

However, you idea of expiring the log files based on timestamp values is
pretty powerful.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: analyze.c
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: serverlog rotation/functions