From: Kevin Dorne <kevin@catalyst.net.nz>
To: pgsql-jdbc@postgresql.org
Subject: Re: Printing query durations
Date: Wed, 29 Mar 2006 13:59:33 +1200
Message-ID: <4429EA05.5090705@catalyst.net.nz> (raw)
In-Reply-To: <C5733194-C792-421C-B887-EAFF4649EEA1@fastcrypt.com>
References: <442890D9.40905@catalyst.net.nz>
<1143541956.3839.329.camel@localhost.localdomain>
<4429E5BC.9050604@catalyst.net.nz>
<C5733194-C792-421C-B887-EAFF4649EEA1@fastcrypt.com>
Dave Cramer wrote:
> Kevin,
>
> Well, the server doesn't really know the difference between a query from
> jdbc vs a query from psql.
Yes, precisely why I am confused.
> The only difference is how they connect. psql
> usually connects to a unix domain socket, whereas jdbc connects via a
> tcpip socket. Even this behaviour can be changed in psql by specifying
> -h <hostname>
Ah, I hadn't thought of that, but it made no difference.
> What is min_duration set to. Is it possible that the queries are faster
> through JDBC. Possibly because the server already has done the count?
>
> Try setting min_duration to something ridiculously small.
No, it's set to 0. I've also tried 1, 5, and 100, to no effect.
If there really is no inherent difference between how JDBC and psql are
connecting (aside from TCP vs. unix domain socket, which doesn't seem to
make a difference), then I'm lost.
But thanks for the suggestions.
-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: <4429EA05.5090705@catalyst.net.nz>
References: <442890D9.40905@catalyst.net.nz> <1143541956.3839.329.camel@localhost.localdomain> <4429E5BC.9050604@catalyst.net.nz> <C5733194-C792-421C-B887-EAFF4649EEA1@fastcrypt.com> <4429EA05.5090705@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