Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id DAB871337BA1 for ; Mon, 17 Jan 2011 12:47:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 94495-02-2 for ; Mon, 17 Jan 2011 16:47:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lpo-relay-05.vmsinfo.com (lpo-relay-05.vmsinfo.com [216.169.137.116]) by mail.postgresql.org (Postfix) with ESMTP id 661971337B58 for ; Mon, 17 Jan 2011 12:47:51 -0400 (AST) X-IronPort-AV: E=Sophos;i="4.60,333,1291611600"; d="scan'208";a="31287094" Received: from unknown (HELO lpo-mailbox-01.vmsinfo.com) ([216.169.137.252]) by lpo-relay-05.vmsinfo.com with ESMTP; 17 Jan 2011 11:47:48 -0500 Received: from [10.101.43.35] (unknown [216.169.135.235]) by lpo-mailbox-01.vmsinfo.com (Postfix) with ESMTP id 0DA087D00B; Mon, 17 Jan 2011 11:47:48 -0500 (EST) Message-ID: <4D3472B3.2060108@vmsinfo.com> Date: Mon, 17 Jan 2011 11:47:47 -0500 From: Mladen Gogala Organization: VMS User-Agent: Thunderbird 2.0.0.24 (X11/20101027) MIME-Version: 1.0 To: Achilleas Mantzios CC: "pgsql-performance@postgresql.org" Subject: Re: "NOT IN" substantially slower in 9.0.2 than 8.3.13 - NOT EXISTS runs fast in both 8.3.13 and 9.0.2 References: <201101171735.16162.achill@matrix.gatewaynet.com> In-Reply-To: <201101171735.16162.achill@matrix.gatewaynet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/132 X-Sequence-Number: 41919 Achilleas Mantzios wrote: > From the whole set of the tests involved, it seems like the "NOT IN" version of the query runs slow > in any postgresql 9.0.2 tested. > Not only that, it will run slower even using Oracle 11.2 or MySQL 5.5. -- Mladen Gogala Sr. Oracle DBA 1500 Broadway New York, NY 10036 (212) 329-5251 http://www.vmsinfo.com The Leader in Integrated Media Intelligence Solutions