Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 6C18364FFBC for ; Wed, 15 Oct 2008 23:18:13 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 03547-04 for ; Wed, 15 Oct 2008 23:18:08 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id 48C1364FF8A for ; Wed, 15 Oct 2008 23:18:08 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id m9G2HwL03422; Wed, 15 Oct 2008 22:17:58 -0400 (EDT) From: Bruce Momjian Message-Id: <200810160217.m9G2HwL03422@momjian.us> Subject: Re: postgres seems to ignore log_min_duration_statement In-Reply-To: <20724.1223989016@sss.pgh.pa.us> To: Tom Lane Date: Wed, 15 Oct 2008 22:17:58 -0400 (EDT) CC: "Martin A. Brooks" , Vladimir Rusinov , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200810/115 X-Sequence-Number: 30571 Tom Lane wrote: > "Martin A. Brooks" 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 http://momjian.us EnterpriseDB http://enterprisedb.com + If your life is a hard drive, Christ can be your backup. +