From: Kevin Dorne <kevin@catalyst.net.nz>
To: pgsql-jdbc@postgresql.org
Subject: Re: Printing query durations
Date: Wed, 29 Mar 2006 13:41:16 +1200
Message-ID: <4429E5BC.9050604@catalyst.net.nz> (raw)
In-Reply-To: <1143541956.3839.329.camel@localhost.localdomain>
References: <442890D9.40905@catalyst.net.nz>
<1143541956.3839.329.camel@localhost.localdomain>
Simon Riggs wrote:
[...]
>> Example output from an interactive query:
>> LOG: duration: 109.524 ms statement: SELECT count(*) FROM transaction;
>
> This is produced by log_min_duration_statement > -1
> These lines always have duration prefixes.
Yes, that's what I would expect. My problem is that this setting only
logs queries via psql; queries via JDBC don't get logged at all.
>> Example output from a JDBC query:
>> LOG: statement: SELECT count(*) FROM transaction;
>
> This is produced by log_statement = 'all'
> These lines never have durations.
> If you want the matching durations, use log_duration = on and read the
> manual to see how to match them up.
Yes, I've done that. Again, I can get those durations to appear for
queries via psql, but not via JDBC.
[...]
By the way, the JDBC driver I'm using (thanks Markus Schaber for the
tip) is "PostgreSQL 8.0 JDBC3 with SSL (build 311)".
-k
Attachments:
signature.asc (application/pgp-signature, 188B) download
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: kevin@catalyst.net.nz
Subject: Re: Printing query durations
In-Reply-To: <4429E5BC.9050604@catalyst.net.nz>
References: <442890D9.40905@catalyst.net.nz> <1143541956.3839.329.camel@localhost.localdomain> <4429E5BC.9050604@catalyst.net.nz>
* 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