X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id ED1CED1E928 for ; Sun, 18 Apr 2004 20:09:27 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 61183-06 for ; Sun, 18 Apr 2004 20:09:29 -0300 (ADT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F0651D1E949 for ; Sun, 18 Apr 2004 20:09:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i3IN9RlN012051; Sun, 18 Apr 2004 19:09:27 -0400 (EDT) To: Markus Bertheau Cc: Litao Wu , pgsql-performance@postgresql.org Subject: Re: sunquery and estimated rows 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> Comments: In-reply-to Markus Bertheau message dated "Sun, 18 Apr 2004 21:22:26 +0200" Date: Sun, 18 Apr 2004 19:09:26 -0400 Message-ID: <12050.1082329766@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/251 X-Sequence-Number: 6551 Markus Bertheau writes: > В Сбт, 17.04.2004, в 01:45, Tom Lane пишет: >> The planner sees that as "where scope = " >> 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