pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Kevin Dorne <kevin@catalyst.net.nz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Printing query durations
Date: Tue, 28 Mar 2006 14:32:33 +0100
Message-ID: <1143552753.3839.346.camel@localhost.localdomain> (raw)
In-Reply-To: <FC0183F9-41C7-4EC3-B6E7-6EC2A5142D2E@fastcrypt.com>
References: <442890D9.40905@catalyst.net.nz>
	<1143541956.3839.329.camel@localhost.localdomain>
	<FC0183F9-41C7-4EC3-B6E7-6EC2A5142D2E@fastcrypt.com>

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





view thread (17+ messages)  latest in thread

Message-ID: <1143552753.3839.346.camel@localhost.localdomain>
Permalink:  ../1143552753.3839.346.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1143552753.3839.346.camel@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: simon@2ndquadrant.com, pg@fastcrypt.com, kevin@catalyst.net.nz
  Subject: Re: Printing query durations
  In-Reply-To: <1143552753.3839.346.camel@localhost.localdomain>
  References: <442890D9.40905@catalyst.net.nz> <1143541956.3839.329.camel@localhost.localdomain> <FC0183F9-41C7-4EC3-B6E7-6EC2A5142D2E@fastcrypt.com> <1143552753.3839.346.camel@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox