Re: serverlog function

Поиск
Список
Период
Сортировка
От Bort, Paul
Тема Re: serverlog function
Дата
Msg-id 735D404BD9E7EB44B9CDFC27FC88809B01C4DA20@mail2.tmwsystems.com
обсуждение исходный текст
Ответ на serverlog function  (Andreas Pflug <pgadmin@pse-consulting.de>)
Список pgsql-hackers
Andreas wrote:
> 
> AFAICS, we have some alternatives:
> - try to grab the currently created files/syslog/eventlog. 
> Seems hard to 
> do, because we'd depend on additional external tools.
> - redirect stderr to a postgresql.conf known file. 
> Disadvantage: breaks 
> piping.
> - maintain a sharedMem for the latest messages. Disadvantage: limited 
> space, no access to older entries after postmaster restart.
> - additional log_destination "file". Disadvantage: Yet Another File 
> besides the redirected stderr, but this seems a minor problem.
> 

Another alternative would be to add code to the admin tool to get the log
via scp or a similar method. IMHO PostgreSQL is doing the right thing here
by using the OS logging, and breaking that isn't a good idea when there are
other ways to solve the problem. 



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Case preserving - suggestions
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: serverlog function (log_destination file)