pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Dorne <kevin@catalyst.net.nz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Printing query durations
Date: Mon, 27 Mar 2006 22:34:24 -0500
Message-ID: <6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com> (raw)
In-Reply-To: <26453.1143515949@sss.pgh.pa.us>
References: <442890D9.40905@catalyst.net.nz>
	<C2617EFB-3E07-431A-988A-CEBF85C41544@fastcrypt.com>
	<26453.1143515949@sss.pgh.pa.us>


On 27-Mar-06, at 10:19 PM, Tom Lane wrote:

> Dave Cramer <pg@fastcrypt.com> writes:
>> There is no difference between a jdbc query and a psql query. The
>> backend doesn't know where the query comes from.
>
> However, the backend has different code paths for V2 and V3 protocol,
> and it could be that what he's looking at is a deficiency in the V3
> protocol logging support.  If so, telling jdbc to use V2 would help.
> (I'm being tentative about this because the backend version was not
> mentioned --- we've fixed some of that stuff in recent releases.)

AFAIR, the deficiencies are in the logging of the prepared  
statements. Duration should be logged regardless, no ?
>
> 			regards, tom lane
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>




view thread (17+ messages)  latest in thread

Message-ID: <6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com>
Permalink:  ../6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com/
Also on:    postgresql.org/message-id/6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com

 · 

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: pg@fastcrypt.com, tgl@sss.pgh.pa.us, kevin@catalyst.net.nz
  Subject: Re: Printing query durations
  In-Reply-To: <6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com>
  References: <442890D9.40905@catalyst.net.nz> <C2617EFB-3E07-431A-988A-CEBF85C41544@fastcrypt.com> <26453.1143515949@sss.pgh.pa.us> <6D679D26-292B-4F63-A53F-0CF37AD917D2@fastcrypt.com>

* 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