Re: Increasing the length of

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Increasing the length of
Дата
Msg-id 200412011647.iB1GlCq06535@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Increasing the length of  ("David Parker" <dparker@tazznetworks.com>)
Ответы Re: Increasing the length of
Список pgsql-hackers
David Parker wrote:
> How difficult would it be to make the combination
> 
>    log_statement = all
>    log_duration = true
> 
> just put the duration on the same line as the statement? Then
> log_min_duration_statement could be used to 
> do the desired log-at-threshold behavior, which certainly seems
> valuable. You'd need a way to visually/scriptually (?) distinguish those
> log records, though, I guess.
> 
> Note that my original post on this was more of a question than an
> objection - it's entirely possible to sed around having duration and
> statement on separate lines - I just wanted clarification. Having them
> on the same line IS handy, however....

Many people want the statement printed when it starts (for real-time
server monitoring), not when it finishes, meaning we don't know the
duration at start time.

--  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 по дате отправления:

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Error handling in plperl and pltcl
Следующее
От: Robert Treat
Дата:
Сообщение: Re: Increasing the length of