From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Bertheau <twanger@bluetwanger.de>
Cc: Litao Wu <litaowu@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: sunquery and estimated rows
Date: Sun, 18 Apr 2004 19:09:26 -0400
Message-ID: <12050.1082329766@sss.pgh.pa.us> (raw)
In-Reply-To: <1082316145.2191.0.camel@yarrow.bertheau.de>
References: <20040416214529.10468.qmail@web13125.mail.yahoo.com>
<3802.1082159101@sss.pgh.pa.us>
<1082316145.2191.0.camel@yarrow.bertheau.de>
Markus Bertheau <twanger@bluetwanger.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, twanger@bluetwanger.de, litaowu@yahoo.com
Subject: Re: sunquery and estimated rows
In-Reply-To: <12050.1082329766@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox