Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BA2F39FB8CE for ; Fri, 18 May 2007 10:10:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 96236-05 for ; Fri, 18 May 2007 10:10:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 066479FB8B5 for ; Fri, 18 May 2007 10:10:51 -0300 (ADT) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1Hp2EK-0007CO-Hn for pgsql-performance@postgresql.org; Fri, 18 May 2007 15:10:48 +0200 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1Hp2EJ-0003kP-00 for ; Fri, 18 May 2007 15:10:47 +0200 Date: Fri, 18 May 2007 15:10:47 +0200 From: "Steinar H. Gunderson" To: pgsql-performance@postgresql.org Subject: Re: performance drop on 8.2.4, reverting to 8.1.4 Message-ID: <20070518131047.GA14326@uio.no> Mail-Followup-To: pgsql-performance@postgresql.org References: <20070518111455.GA13978@uio.no> <008901c79942$e7136e10$653e10ac@ilgvaio> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <008901c79942$e7136e10$653e10ac@ilgvaio> X-Operating-System: Linux 2.6.20.4 on a x86_64 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/319 X-Sequence-Number: 24709 On Fri, May 18, 2007 at 02:51:42PM +0300, Liviu Ionescu wrote: > it helped, the new version of the query takes 2303 ms on both 8.1.4 and 8.2.4. And the old one? > any idea why the 8.2.4 planner is not happy with the initial select? was it > just a big chance that it worked in 8.1.4 or the 8.2.4 planner has a > problem? I guess it was more or less by chance, especially as 8.1 did not reorder outer joins. Others might know more about the estimation, though. /* Steinar */ -- Homepage: http://www.sesse.net/