X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 550B8D8097 for ; Sun, 28 Aug 2005 18:30:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94778-06 for ; Sun, 28 Aug 2005 21:30:50 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9A0B7D809A for ; Sun, 28 Aug 2005 18:30:49 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7SLUmHF026928; Sun, 28 Aug 2005 17:30:50 -0400 (EDT) To: "Ilia Kantor" Cc: pgsql-performance@postgresql.org Subject: Re: Planner improvement suggestion In-reply-to: References: Comments: In-reply-to "Ilia Kantor" message dated "Mon, 29 Aug 2005 00:59:33 +0400" Date: Sun, 28 Aug 2005 17:30:48 -0400 Message-ID: <26927.1125264648@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/491 X-Sequence-Number: 14238 "Ilia Kantor" writes: > So I just suggest that the planner should take this into account and > "propagate" the condition outside or inside for planning if needed. I believe it does this already for equality conditions, but not for inequalities. regards, tom lane