From: Dave Cramer <pg@fastcrypt.com>
To: Kevin Dorne <kevin@catalyst.net.nz>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Printing query durations
Date: Mon, 27 Mar 2006 22:01:26 -0500
Message-ID: <C2617EFB-3E07-431A-988A-CEBF85C41544@fastcrypt.com> (raw)
In-Reply-To: <442890D9.40905@catalyst.net.nz>
References: <442890D9.40905@catalyst.net.nz>
Kevin,
There is no difference between a jdbc query and a psql query. The
backend doesn't know where the query comes from.
DAve
On 27-Mar-06, at 8:26 PM, Kevin Dorne wrote:
> Hello,
>
> I am having some trouble getting PostgreSQL to log durations with
> statements when called through JDBC. They appear just fine with
> interactive queries using psql, but the duration field does not
> show up
> on JDBC queries.
>
> Is there some configuration I need to pass to the JDBC driver?
>
> Example output from an interactive query:
> LOG: duration: 109.524 ms statement: SELECT count(*) FROM
> transaction;
>
> Example output from a JDBC query:
> LOG: statement: SELECT count(*) FROM transaction;
>
> Cheers,
> -k
>
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, kevin@catalyst.net.nz
Subject: Re: Printing query durations
In-Reply-To: <C2617EFB-3E07-431A-988A-CEBF85C41544@fastcrypt.com>
References: <442890D9.40905@catalyst.net.nz> <C2617EFB-3E07-431A-988A-CEBF85C41544@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