From: | Dave Cramer <pg(at)fastcrypt(dot)com> |
---|---|
To: | Kevin Dorne <kevin(at)catalyst(dot)net(dot)nz> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Printing query durations |
Date: | 2006-03-28 03:01:26 |
Message-ID: | C2617EFB-3E07-431A-988A-CEBF85C41544@fastcrypt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-03-28 03:09:54 | Re: gcj has a lot of complaints about 8.1-405 release |
Previous Message | Kevin Dorne | 2006-03-28 01:26:49 | Printing query durations |