Re: log_duration is redundant, no?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: log_duration is redundant, no?
Дата
Msg-id 200609072252.k87MqAu09347@momjian.us
обсуждение исходный текст
Ответ на Re: log_duration is redundant, no?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: log_duration is redundant, no?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > If you are using an external tool, can't you just restrict what you
> > display based on the logged duration?
> 
> I think his basic complaint is that doing the full logging pushup for
> even short-duration queries is too expensive, and that logging only the
> duration and not the query text or parameters makes a significant speed
> difference.  I'm not at all sure that I buy that, but if it's true then
> subsequent filtering obviously doesn't help.

Well, except for bind, all the log output display is zero cost, just a
printf(), as I remember.  The only cost that is significant, I think, is
the timing of the query, and that is happening for all the setttings
discussed.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: "Guillaume Smet"
Дата:
Сообщение: Re: log_duration is redundant, no?
Следующее
От: Chris Browne
Дата:
Сообщение: Re: New Linux Filesystem: NILFS