Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 968059FA304 for ; Sun, 31 Dec 2006 12:45:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 23804-06-3 for ; Sun, 31 Dec 2006 12:45:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by postgresql.org (Postfix) with ESMTP id DE48A9FA217 for ; Sun, 31 Dec 2006 12:45:42 -0400 (AST) Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep01.bredband.com with ESMTP id <20061231152714.WPWE29703.mxfep01.bredband.com@ironport.bredband.com> for ; Sun, 31 Dec 2006 16:27:14 +0100 Received: from ua-83-227-204-174.cust.bredbandsbolaget.se (HELO zigo.dhs.org) ([83.227.204.174]) by ironport.bredband.com with ESMTP; 31 Dec 2006 16:27:13 +0100 Received: from [192.168.0.3] (cosmo.zigo.dhs.org [192.168.0.3]) by zigo.dhs.org (Postfix) with ESMTP id CBA4B8640; Sun, 31 Dec 2006 16:27:12 +0100 (CET) Message-ID: <4597D6D0.8010902@zigo.dhs.org> Date: Sun, 31 Dec 2006 16:27:12 +0100 From: Dennis Bjorklund User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Rolf_=D8stvik?= Cc: pgsql-performance@postgresql.org Subject: Re: Worse perfomance on 8.2.0 than on 7.4.14 References: <200612311233.10201.rolfostvik@yahoo.no> In-Reply-To: <200612311233.10201.rolfostvik@yahoo.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/544 X-Sequence-Number: 22600 Rolf Østvik skrev: > I have a simple query which uses 32ms on 7.4.14 and 1015ms on 8.2.0. > I guess 7.4.14 creates a better execution plan than 8.2.0 for this query but Try to turn off planner options in 8.2 to make it generate the same plan as 7.4. Then run EXPLAIN ANALYZE on that query that generate the same plan as in 7.4 and we can compare the costs and maybe understand what go wrong. For example, try set enable_hashjoin to false; set enable_bitmapscan to false; but you might need to turn off more things to get it to generate the 7.4 plan. /Dennis