X-Original-To: pgsql-hackers@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 31001475E77; Tue, 6 May 2003 09:45:07 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 422ED474E42; Tue, 6 May 2003 09:45:06 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h46Dj7U6024780; Tue, 6 May 2003 09:45:08 -0400 (EDT) To: jim@nasby.net Cc: Josh Berkus , pgsql-performance , pgsql-hackers@postgresql.org Subject: Re: [PERFORM] Hypothetical suggestions for planner, indexing improvement In-reply-to: <20030506080747.C66185@flake.decibel.org> References: <200305051219.58955.josh@agliodbs.com> <22292.1052195133@sss.pgh.pa.us> <200305052133.33680.josh@agliodbs.com> <20030506080747.C66185@flake.decibel.org> Comments: In-reply-to "Jim C. Nasby" message dated "Tue, 06 May 2003 08:07:47 -0500" Date: Tue, 06 May 2003 09:45:07 -0400 Message-ID: <24779.1052228707@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.3 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/101 X-Sequence-Number: 38608 "Jim C. Nasby" writes: > It would be nice to add support for multi-column IN.. > WHERE (a, b, c) IN (SELECT a, b, c ...) RTFM... > BTW, does postgresql handle IN and EXISTS differently? Yes. > Theoretically if the optimizer was good enough you could transform one > to the other and not worry about it. No. They have different responses to NULLs in the subselect result. regards, tom lane