Re: postgres seems to ignore log_min_duration_statement

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: postgres seems to ignore log_min_duration_statement
Дата
Msg-id 200810160217.m9G2HwL03422@momjian.us
обсуждение исходный текст
Ответ на Re: postgres seems to ignore log_min_duration_statement  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Tom Lane wrote:
> "Martin A. Brooks" <martin@antibodymx.net> writes:
> > I don't explicitly set that parameter in my config.  The full config
> > file can be found at  http://www.antibodymx.net/postgresql.conf
>
> You've got log_duration on; that overrides log_min_duration_statement
> and forces statement durations to always be logged.
>
> (No, I'm not quite sure why we have both variables ...)

I believe log_duration prints just the duration and assumes you printed
the statement previously (when it arrived).  log_min_duration_statement
by definition has to print after the statement completes.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: backup server - how to disconnect
Следующее
От: Martin Badie
Дата:
Сообщение: Re: replication with table add/removes..