Re: Slow query after upgrades

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Tom Duffey <tduffey(at)techbydesign(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Slow query after upgrades
Date: 2007-12-14 01:03:21
Message-ID: 23430.1197594201@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Oliver Jowett <oliver(at)opencloud(dot)com> writes:
> The JDBC driver is using an unnamed statement in this case, shouldn't
> the planner end up using index selectivity estimates based on the actual
> parameter values?

If he's using a recent enough backend, it should.

> From the explain output that just came through it looks like a type
> mismatch problem on the timestamp parameter.

Yeah, no question. Implicit casts to text strike again :-(. He was
probably getting the wrong answers, not only a slow query.

regards, tom lane

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ken Johanson 2007-12-14 02:02:37 Re: Synthesize support for Statement.getGeneratedKeys()?
Previous Message Ken Johanson 2007-12-14 00:48:31 Re: RETURNING clause: how to specifiy column indexes?