Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B49F364FDCB for ; Fri, 24 Oct 2008 20:56:48 -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 58630-05 for ; Fri, 24 Oct 2008 20:56:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 28FFB64FDC5 for ; Fri, 24 Oct 2008 20:56:46 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m9ONu1iR006093; Fri, 24 Oct 2008 19:56:01 -0400 (EDT) To: Alexander Stanier cc: pgsql-admin@postgresql.org Subject: Re: Change in logging behaviour between 8.1 and 8.2 In-reply-to: <4901E4ED.7090301@egsgroup.com> References: <4901E4ED.7090301@egsgroup.com> Comments: In-reply-to Alexander Stanier message dated "Fri, 24 Oct 2008 16:08:29 +0100" Date: Fri, 24 Oct 2008 19:56:01 -0400 Message-ID: <6092.1224892561@sss.pgh.pa.us> From: Tom Lane 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/163 X-Sequence-Number: 30619 Alexander Stanier writes: > We have the following parameters in our postgresql.conf: > log_min_duration_statement = 10000 > log_duration = on > log_statement = 'all' > In PostgreSQL 8.2, it seems the statement and duration are no longer > logged together (i.e. not on the same log line) which means that you > can't easily decipher those durations/statements which have been logged > by log_duration/log_statement from those that have been logged by > log_min_duration_statement. The fact that they were on one line made > them very easy to pull out of the logs. > Was this change intentional? Yes. People complained about double logging of the full statement text. regards, tom lane