Printing query durations - Mailing list pgsql-jdbc

From Kevin Dorne
Subject Printing query durations
Date
Msg-id 442890D9.40905@catalyst.net.nz
Whole thread Raw
Responses Re: Printing query durations
Re: Printing query durations
List pgsql-jdbc
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


Attachment

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: gcj has a lot of complaints about 8.1-405 release
Next
From: Dave Cramer
Date:
Subject: Re: Printing query durations