X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 25C869DC9CA for ; Tue, 28 Mar 2006 09:35:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 47583-01 for ; Tue, 28 Mar 2006 09:35:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by postgresql.org (Postfix) with ESMTP id 19A899DC848 for ; Tue, 28 Mar 2006 09:35:40 -0400 (AST) Received: from [192.168.0.5] (unknown [84.12.26.47]) by smtp.nildram.co.uk (Postfix) with ESMTP id 1C74A33B6EC; Tue, 28 Mar 2006 14:32:40 +0100 (BST) Subject: Re: Printing query durations From: Simon Riggs To: Dave Cramer Cc: Kevin Dorne , pgsql-jdbc@postgresql.org In-Reply-To: References: <442890D9.40905@catalyst.net.nz> <1143541956.3839.329.camel@localhost.localdomain> Content-Type: text/plain Date: Tue, 28 Mar 2006 14:32:33 +0100 Message-Id: <1143552753.3839.346.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.097 required=5 tests=[AWL=0.097] X-Spam-Score: 0.097 X-Spam-Level: X-Archive-Number: 200603/129 X-Sequence-Number: 14910 On Tue, 2006-03-28 at 07:12 -0500, Dave Cramer wrote: > What happens if I turn log_duration on ? Doesn't it prepend the > duration to every log ? No. If you use log_statement the statement is logged before execution, whereas the duration is known only at the end, so two log records are produced. log_min_duration_statement logs both at the end so is better suited to performance analysis. Best Regards, Simon Riggs