Re: sunquery and estimated rows

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Bertheau <twanger(at)bluetwanger(dot)de>
Cc: Litao Wu <litaowu(at)yahoo(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: sunquery and estimated rows
Date: 2004-04-18 23:09:26
Message-ID: 12050.1082329766@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Markus Bertheau <twanger(at)bluetwanger(dot)de> writes:
> , 17.04.2004, 01:45, Tom Lane :
>> The planner sees that as "where scope = <some complicated expression>"
>> and falls back to a default estimate. It won't simplify a sub-select
>> to a constant. (Some people consider that a feature ;-).)

> Why?

It's the only way to prevent it from simplifying when you don't want it
to.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Dave Cramer 2004-04-18 23:34:41 Re: Wierd context-switching issue on Xeon
Previous Message Tom Lane 2004-04-18 21:47:41 Re: Wierd context-switching issue on Xeon