X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 45C9030D6D2 for ; Fri, 13 Jun 2003 18:51:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 76057-09 for ; Fri, 13 Jun 2003 15:51:17 -0300 (ADT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id 362AF30EB4C for ; Fri, 13 Jun 2003 15:51:16 -0300 (ADT) Received: (qmail 19818 invoked by uid 500); 13 Jun 2003 18:54:05 -0000 Date: Fri, 13 Jun 2003 13:54:05 -0500 From: Bruno Wolff III To: Ryszard Lach Cc: pgsql-performance@postgresql.org Subject: Re: 7.3 vs 7.2 - different query plan, bad performance Message-ID: <20030613185405.GB19711@wolff.to> Mail-Followup-To: Ryszard Lach , pgsql-performance@postgresql.org References: <20030613184506.GE21614@siaco.id.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030613184506.GE21614@siaco.id.pl> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/61 X-Sequence-Number: 2145 On Fri, Jun 13, 2003 at 20:45:06 +0200, Ryszard Lach wrote: > I can't understand where comes the big difference in query plan from, and > (that's more important) - how to force postgres 7.3 to execute it more > efficient? I am guessing that your are really using 7.3.x and not 7.3. There was a bug in 7.3 that was fixed in 7.3.1 or 7.3.2 with subselects. However this fix was made with safety in mind (as it was a point release) and resulted in some queries running slower. A complete fix was made for 7.4. To test to see if this is really the problem, you could try a 7.4 snapshot or 7.3 to see if you get improved plans.