Re: [HACKERS] Logging - events supported

Поиск
Список
Период
Сортировка
От Tim Holloway
Тема Re: [HACKERS] Logging - events supported
Дата
Msg-id 38139168.A394A269@southeast.net
обсуждение исходный текст
Ответ на Re: [HACKERS] Logging - events supported  (Massimo Dal Zotto <dz@cs.unitn.it>)
Ответы Re: [HACKERS] Logging - events supported
Список pgsql-hackers

Massimo Dal Zotto wrote:
> 
...
> > 104 - Server ABEND
>                ^^^^^
> 
> This reminds too much the old IBM dinosaurs. Maybe `crash' is more modern.
> 

My past lies exposed! But that's locale=specific. You can just as easily make it report
"La comedia es finito". Or whatever.

> 
> I suggest also the following things:
> 
> 1)      each log entry should be a single line. This would greatly simplify
>         the automatic processing of log files using standard unix tools,
>         including loading entries into a database table.
> 
> 2)      each entry should be prefixed by a timestamp and the backend pid,
>         more or less like the syslog entries. I suggest the following
>         format, which is the one currently implemented by elog_timestamp()
> 
>         991020.14:29:56.699 [7172] started: host=127.0.0.1 user=dz database=dz
>         991020.14:31:02.723 [7172] query: select * from pg_user
>

Well, again, the format of the log output is under the administrator's control. If you
look at how Apache does it, you'll see the idea. Only the "magic codes" have changed to
reflect the differing types of data.
> 3)      the logging level can be changed on-the-fly by sending a SIGHUP to
>         the postmaster and then automatically to all the backends. Currently
>         it reloads the pg_options file, which was originally designed exactly
>         for controlling the debug and log messages without restarting the
>         postmaster and all backends, but it could also reload any other
>         configuration file.
>

This was Tom's suggestion as well. It seems good. Unless something prevents it,
that is how it shall work.
   Thanks,
    Tim Holloway


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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] COMMENT ON patch
Следующее
От: Byron Nikolaidis
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] COMMENT ON patch