X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 028F39DC841 for ; Sat, 18 Feb 2006 14:36:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86868-09 for ; Sat, 18 Feb 2006 14:36:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 5418E9DC99B for ; Sat, 18 Feb 2006 14:36:51 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k1IIaprc020491; Sat, 18 Feb 2006 13:36:51 -0500 (EST) To: Fredrik Olsson cc: pgsql-performance@postgresql.org Subject: Re: Force another plan. In-reply-to: <43F74592.7010701@treyst.se> References: <43F74592.7010701@treyst.se> Comments: In-reply-to Fredrik Olsson message dated "Sat, 18 Feb 2006 17:04:34 +0100" Date: Sat, 18 Feb 2006 13:36:51 -0500 Message-ID: <20490.1140287811@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.11 required=5 tests=[AWL=0.110] X-Spam-Score: 0.11 X-Spam-Level: X-Archive-Number: 200602/309 X-Sequence-Number: 17295 Fredrik Olsson writes: > I have some quite huge queries, inside functions, so debugging is kind > of hard. But I have located the query that for some reason gets 4 times > as slow after an analyze. Could we see EXPLAIN ANALYZE output for these cases, not just EXPLAIN? It seems a bit premature to be discussing ways to "force" a plan choice when you don't even have a clear idea what's going wrong. regards, tom lane