Re: postgres seems to ignore log_min_duration_statement - Mailing list pgsql-admin

From Bruce Momjian
Subject Re: postgres seems to ignore log_min_duration_statement
Date
Msg-id 200810160217.m9G2HwL03422@momjian.us
Whole thread Raw
In response to Re: postgres seems to ignore log_min_duration_statement  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Fabrízio de Royes Mello
Date:
Subject: Re: backup server - how to disconnect
Next
From: Martin Badie
Date:
Subject: Re: replication with table add/removes..