Re: Slow query after upgrade from 8.2 to 8.4 - Mailing list pgsql-performance

From Mark Kirkwood
Subject Re: Slow query after upgrade from 8.2 to 8.4
Date
Msg-id 4EE7CDEF.1040709@catalyst.net.nz
Whole thread Raw
In response to Re: Slow query after upgrade from 8.2 to 8.4  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Slow query after upgrade from 8.2 to 8.4
List pgsql-performance
On 10/12/11 04:30, Tom Lane wrote:
> However, it's not apparent to me why you would see any difference
> between 8.2 and 8.4 on this type of query. I tried a query analogous
> to this one on both, and got identical plans. I'm guessing that your
> slowdown is due to not having updated statistics on the new
> installation, or perhaps failing to duplicate some relevant settings.

I notice he has 8.4.*8*... I wonder if he's running into the poor
estimation bug for sub-selects/semi joins that was fixed in 8.4.9.

Kaloyan, can you try the query in 8.4.9?

regards

Mark

pgsql-performance by date:

Previous
From: Jon Nelson
Date:
Subject: Re: select distinct uses index scan vs full table scan
Next
From: Tom Lane
Date:
Subject: Re: copy vs. C function