Re: Query plan issue when upgrading to postgres 8.14 (from

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ioana Danes <ioanasoftware(at)yahoo(dot)ca>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query plan issue when upgrading to postgres 8.14 (from
Date: 2006-07-27 22:22:05
Message-ID: 13633.1154038925@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ioana Danes <ioanasoftware(at)yahoo(dot)ca> writes:
> Does anyone now what the problem is with the following select when upgrading to postgresql 8.1.4 the query plan does not use the indexes as in postgresql 8.0.3.

The planner doesn't have enough information about the correlation
between testtype and testid to guess that the index-driven max()
optimization doesn't work well in this case. But I see you've
already found the solution ...

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jaime Casanova 2006-07-28 00:52:24 Re: Savepoint performance
Previous Message Richard Rowell 2006-07-27 21:37:02 Strange behaviour