From: Oliver Jowett <oliver@opencloud.com>
To: Tom Duffey <tduffey@techbydesign.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Slow query after upgrades
Date: Fri, 14 Dec 2007 10:20:33 +1300
Message-ID: <4761A221.80604@opencloud.com> (raw)
In-Reply-To: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com>
References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com>
Tom Duffey wrote:
> I'm leaving the old JDBC driver there for now but am wondering if anyone
> has any ideas what I should look for to find a solution to this? I
> jProfiled the execution and it is indeed the JDBC query that is taking
> significantly more time to execute with the newer driver in place.
Identify the slow query and build a testcase for that particular query
and send it to the list?
Also, beware of counting blocking I/O time as CPU time when doing Java
profiling. Probably, the Java side is just blocking waiting on the server.
There are server-side logging options you might want to look at too.
The most likely cause is that more recent drivers ("recent" is very
relative here, I think it went in for the 8.0 driver?) use the extended
query protocol which can result in different plans for some queries.
-O
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: oliver@opencloud.com, tduffey@techbydesign.com
Subject: Re: Slow query after upgrades
In-Reply-To: <4761A221.80604@opencloud.com>
References: <3EB52707-C945-43D6-9B3F-15F3B228D6F6@techbydesign.com> <4761A221.80604@opencloud.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