Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id B70399FB6FD for ; Mon, 16 Apr 2007 19:21:52 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 81371-02 for ; Mon, 16 Apr 2007 19:21:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from kittyhawk.tanabi.org (nc-67-76-229-82.sta.embarqhsd.net [67.76.229.82]) by postgresql.org (Postfix) with ESMTP id BF5FA9FB6B5 for ; Mon, 16 Apr 2007 19:21:49 -0300 (ADT) Received: from kittyhawk.tanabi.org (localhost [127.0.0.1]) by kittyhawk.tanabi.org (8.13.8+Sun/8.13.8) with ESMTP id l3GMDt08000757; Mon, 16 Apr 2007 18:13:55 -0400 (EDT) Received: from localhost (cheetah@localhost) by kittyhawk.tanabi.org (8.13.8+Sun/8.13.8/Submit) with ESMTP id l3GMDsgn000754; Mon, 16 Apr 2007 18:13:54 -0400 (EDT) X-Authentication-Warning: kittyhawk.tanabi.org: cheetah owned process doing -bs Date: Mon, 16 Apr 2007 18:13:54 -0400 (EDT) From: Steve To: Tom Lane cc: pgsql-patches@postgreSQL.org, Alvaro Herrera Subject: Re: [HACKERS] choose_bitmap_and again (was Re: [PERFORM] Strangely Variable Query Performance) In-Reply-To: <26103.1176613862@sss.pgh.pa.us> Message-ID: 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> <26103.1176613862@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/391 X-Sequence-Number: 1958 > > 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... > Okay, here's the vedict; all the "extremely slow" queries (i.e. queries that took more than 30 seconds and upwards of several minutes to complete) are now running in the realm of reason. In fact, most queries that took between 1 and 4 minutes are now down to taking about 9 seconds which is obviously a tremendous improvement. A few of the queries that were taking 9 seconds or less are "slightly slower" -- meaning a second or two slower. However most of them are running at the same speed they were before, or better. So I'd say as far as I can tell with my application and my dataset, this change is solid and an obvious improvement. Talk to you later, Steve