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 348DCD79B1 for ; Sat, 27 Aug 2005 07:19:54 -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 96278-01 for ; Sat, 27 Aug 2005 10:19:48 +0000 (GMT) Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id C3539D7078 for ; Sat, 27 Aug 2005 07:19:46 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1E8xms-000247-A3 for pgsql-performance@postgresql.org; Sat, 27 Aug 2005 12:19:47 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1E8xmr-0004vm-00 for ; Sat, 27 Aug 2005 12:19:45 +0200 Date: Sat, 27 Aug 2005 12:19:45 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: Weird performance drop after VACUUM Message-ID: <20050827101945.GA18155@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <1125093859.9329.30.camel@localhost.localdomain> <26745.1125099111@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <26745.1125099111@sss.pgh.pa.us> X-Operating-System: Linux 2.6.11.8 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.015 required=5 tests=[AWL=0.015] X-Spam-Level: X-Archive-Number: 200508/475 X-Sequence-Number: 14222 On Fri, Aug 26, 2005 at 07:31:51PM -0400, Tom Lane wrote: > Or you could just play with the order of the filter conditions ... for > example, the date condition at the end is probably far cheaper to test > than the text comparisons, so if that's fairly selective it'd be worth > putting it first. That's an interesting approach -- could the planner do such things itself? /* Steinar */ -- Homepage: http://www.sesse.net/