Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8B79B9FB2CB for ; Tue, 13 Mar 2007 07:11:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 09082-08-2 for ; Tue, 13 Mar 2007 07:11:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by postgresql.org (Postfix) with ESMTP id 120899FB2BA for ; Tue, 13 Mar 2007 07:11:53 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.8/8.13.8) with ESMTP id l2DABIZe033455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 13 Mar 2007 03:11:21 -0700 (MST) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.8/8.13.8) with ESMTP id l2DABIVk099620; Tue, 13 Mar 2007 04:11:18 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.8/8.13.8/Submit) id l2DABHNO099619; Tue, 13 Mar 2007 04:11:17 -0600 (MDT) (envelope-from mfuhr) Date: Tue, 13 Mar 2007 04:11:17 -0600 From: Michael Fuhr To: vincent.moreau@leroymerlin.fr Cc: pgsql-performance@postgresql.org Subject: Re: Execution plan changed after upgrade from 7.3.9 to 8.2.3 Message-ID: <20070313101117.GA98241@winnie.fuhr.org> References: <45F65EA3.1030706@leroymerlin.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45F65EA3.1030706@leroymerlin.fr> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/210 X-Sequence-Number: 23615 On Tue, Mar 13, 2007 at 09:19:47AM +0100, vincent.moreau@leroymerlin.fr wrote: > Is there an option in the 8.2.3 to change in order to have the same > execution plan than before ? Let's see if we can figure out why 8.2.3 is choosing a bad plan. Have you run ANALYZE on the tables in 8.2.3? Could you post the query and the complete output of EXPLAIN ANALYZE (preferably without wrapping) for both versions? -- Michael Fuhr