Re: 8.4/9.0 simple query performance regression

From: Vitalii Tymchyshyn <tivv00(at)gmail(dot)com>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: 8.4/9.0 simple query performance regression
Date: 2011-06-07 08:19:29
Message-ID: 4DEDDF11.2020801@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

07.06.11 00:45, Josh Berkus написав(ла):
> All,
>
> Just got this simple case off IRC today:
>
> 8.4.4
> This plan completes in 100ms:
> Filter: (NOT (hashed SubPlan 1))

> 9.0.2
> This plan does not complete in 15 minutes or more:
> Filter: (NOT (SubPlan 1))
"Hashed" is the key. Hashed subplans usually has much better performance.
You need to increase work_mem. I suppose it is in default state as you
need not too much memory for hash of 70K integer values.
BTW: Why do it want to materialize a result of seq scan without filter.
I can see no benefits (or is it more narrow rows?)

Best regards, Vitalii Tymchyshyn

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message anthony.shipman 2011-06-07 08:26:17 strange query plan with LIMIT
Previous Message anthony.shipman 2011-06-07 08:02:08 strange query plan with LIMIT