From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Willem Leenen <willem_leenen(at)hotmail(dot)com> |
Cc: | pg(at)fastcrypt(dot)com, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: performance regression with 9.2 |
Date: | 2012-11-12 21:26:37 |
Message-ID: | 8789.1352755597@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Willem Leenen <willem_leenen(at)hotmail(dot)com> writes:
> To me, i see a mismatch between the optimizer and the actual records
> retrieved in the fast SQL as well, so plan instability is a realistic
> scenario.
Well, the rowcount estimates for a recursive union are certainly
pretty bogus, but those are the same either way. The reason this looks
like a bug and not just statistical issues is that the join inside the
recursive union is done as a hash, even though that's much more
expensive (according to the estimates, not reality) than a nestloop.
Presumably the planner is failing to even consider a
nestloop-with-inner-indexscan join there, else it would have picked that
type of plan. Why it's failing is as yet unclear.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Craig Ringer | 2012-11-13 02:08:06 | Re: PostreSQL v9.2 uses a lot of memory in Windows XP |
Previous Message | Willem Leenen | 2012-11-12 21:13:46 | Re: performance regression with 9.2 |