Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C8BAF9FB3AA for ; Sun, 15 Apr 2007 02:12:29 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49682-01 for ; Sun, 15 Apr 2007 02:12:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E14EB9FB274 for ; Sun, 15 Apr 2007 02:11:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l3F5B2gX026104; Sun, 15 Apr 2007 01:11:03 -0400 (EDT) To: Steve cc: pgsql-patches@postgreSQL.org, Alvaro Herrera Subject: Re: [HACKERS] choose_bitmap_and again (was Re: [PERFORM] Strangely Variable Query Performance) In-reply-to: References: <10117.1176420763@sss.pgh.pa.us> <10355.1176422445@sss.pgh.pa.us> <10503.1176423606@sss.pgh.pa.us> <12360.1176436194@sss.pgh.pa.us> <26399.1176504501@sss.pgh.pa.us> <20070413232409.GI27255@alvh.no-ip.org> <7772.1176574886@sss.pgh.pa.us> <23414.1176588173@sss.pgh.pa.us> Comments: In-reply-to Steve message dated "Sat, 14 Apr 2007 18:55:45 -0400" Date: Sun, 15 Apr 2007 01:11:02 -0400 Message-ID: <26103.1176613862@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/379 X-Sequence-Number: 1946 Steve writes: >> Steve, can you try this out on your queries and see if it makes better >> or worse decisions? It seems to fix your initial complaint but I do >> not have a large stock of test cases to try. > Wow, this is a remarkable difference. Queries that were taking > minutes to complete are coming up in seconds. Good work, I think this'll > solve my customer's needs for their demo on the 19th :) Can you find any cases where it makes a worse choice than before? Another thing to pay attention to is whether the planning time gets noticeably worse. If we can't find any cases where it loses badly on those measures, I'll feel comfortable in applying it... regards, tom lane