X-Original-To: pgsql-docs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AA7FA5293B for ; Wed, 29 Jun 2005 18:30:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54624-07 for ; Wed, 29 Jun 2005 21:30:49 +0000 (GMT) Received: from davinci.ethosmedia.com (server227.ethosmedia.com [209.128.84.227]) by svr1.postgresql.org (Postfix) with ESMTP id 80E90529C1 for ; Wed, 29 Jun 2005 18:30:46 -0300 (ADT) X-EthosMedia-Virus-Scanned: no infections found Received: from [64.81.245.111] (account josh@agliodbs.com HELO temoku.sf.agliodbs.com) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.1.8) with ESMTP id 7549699; Wed, 29 Jun 2005 14:32:55 -0700 From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: Bruce Momjian Subject: Re: log_min_duration_statement versus log_statement Date: Wed, 29 Jun 2005 14:32:55 -0700 User-Agent: KMail/1.8 Cc: Christian Robottom Reis , pgsql-docs@postgresql.org, Guilherme Salgado References: <200506290122.j5T1Mt721527@candle.pha.pa.us> In-Reply-To: <200506290122.j5T1Mt721527@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506291432.56196.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.045 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/33 X-Sequence-Number: 3126 Bruce, > OK, what if we change the documentaiton to be: > > log_min_duration_statement = 1000 # Log all statements whose > # execution time exceeds the value, in > # milliseconds. -1 disables. Zero logs > # all statements and their durations. > > I think you are confused because log_min_duration_statement is really > about _when_ to log (duration > ? ms), and what to log (the statement). No, I see what Christian is complaining about. If one sets log_statement="All", then all statements will be logged regardless of duration or the setting in log_min_duration_statement. So it should actually read: log_min_duration_statement = 1000 # Log all statements whose # execution time exceeds the value, in # milliseconds. -1 disables. This is in addition to # any statements logged according to log_statement. I'm with Christian on wanting to change the behavior so that it does what the comments says it does currently, but I don't think we'll get that done today. --Josh -- --Josh Josh Berkus Aglio Database Solutions San Francisco