Re: logging stuff

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: logging stuff
Дата
Msg-id 11564.1060109540@sss.pgh.pa.us
обсуждение исходный текст
Ответ на logging stuff  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: logging stuff  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> The dbname patch is now done. If nobody objects to the format 
> ("[db:yourdbname]") I'll submit it - I did it that way to make it fairly 
> easy to split a log file based on it, although you would have to be 
> careful with multiline log entries such as query strings.

I'd tend to just put the dbname in a known column, and not bother with
the decoration --- decoration adds up fast when it's on every log line,
and I don't think it helps make the log more parseable.  Compare what we
do with timestamps and pids.
        regards, tom lane


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

Предыдущее
От: "Jenny -"
Дата:
Сообщение: LOCK.tag(figuring out granularity of lock)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: logging stuff