pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Boris <boris.partensky@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Upgrading JDBC driver from 7.3 to 8.4 affected execution plans
Date: Mon, 04 Oct 2010 13:27:45 +1300
Message-ID: <4CA91F81.4050505@opencloud.com> (raw)
In-Reply-To: <9c7afd41-61f0-4acb-bc14-bb10aeaf395f@d17g2000yqm.googlegroups.com>
References: <9c7afd41-61f0-4acb-bc14-bb10aeaf395f@d17g2000yqm.googlegroups.com>

Boris wrote:

>  Another interesting point is that, when I paste the slow query into
> psql, and explain/analyze it,  bad plan is chosen (like observed from
> the code with new driver).
> 
> Any ideas? I'd be happy to provide more details if needed. Is the
> issue somehow caused by the fact that 8.4 driver uses real server side
> prepared statements vs the old one that didn't?

If you get the same problem via psql, I doubt it's related to your
driver changes. What changed on the server side?

-O



view thread (10+ messages)  latest in thread

Message-ID: <4CA91F81.4050505@opencloud.com>
Permalink:  ../4CA91F81.4050505@opencloud.com/
Also on:    postgresql.org/message-id/4CA91F81.4050505@opencloud.com

 · 

reply

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, boris.partensky@gmail.com
  Subject: Re: Upgrading JDBC driver from 7.3 to 8.4 affected execution plans
  In-Reply-To: <4CA91F81.4050505@opencloud.com>
  References: <9c7afd41-61f0-4acb-bc14-bb10aeaf395f@d17g2000yqm.googlegroups.com> <4CA91F81.4050505@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