X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2235E9F9316 for ; Tue, 6 Jun 2006 12:06:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 06213-04 for ; Tue, 6 Jun 2006 12:06:22 -0300 (ADT) 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 834979FA2E6 for ; Tue, 6 Jun 2006 12:06:22 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k56F69Qm017427; Tue, 6 Jun 2006 11:06:09 -0400 (EDT) To: Simon Riggs cc: Andrew Sullivan , pgsql-performance@postgresql.org Subject: Re: Some queries starting to hang In-reply-to: <1149605576.2621.502.camel@localhost.localdomain> References: <1149534308.3583.56.camel@bg002441.pro-unlimited.com> <22706.1149538039@sss.pgh.pa.us> <20060605203851.GB7071@phlogiston.dyndns.org> <23915.1149541591@sss.pgh.pa.us> <1149604741.2621.487.camel@localhost.localdomain> <17148.1149605005@sss.pgh.pa.us> <1149605576.2621.502.camel@localhost.localdomain> Comments: In-reply-to Simon Riggs message dated "Tue, 06 Jun 2006 15:52:56 +0100" Date: Tue, 06 Jun 2006 11:06:09 -0400 Message-ID: <17426.1149606369@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/56 X-Sequence-Number: 19413 Simon Riggs writes: > You mentioned it would be good if the OP had delivered an EXPLAIN > ANALYZE; I agree(d). The lack of EXPLAIN ANALYZE is frequently because > you can't get them to run to completion - more so when the query you > wish to analyze doesn't appear to complete either. Well, he could have shown EXPLAIN ANALYZE for the server that was managing to run the query in a reasonable amount of time. > The idea I just had was: why do we need EXPLAIN ANALYZE to run to > completion? In severe cases like this thread, we might be able to > discover the root cause by a *partial* execution of the plan, as long as > it was properly instrumented. That way, the OP might have been able to > discover the root cause himself... I don't think that helps, as it just replaces one uncertainty by another: how far did the EXPLAIN really get towards completion of the plan? You still don't have any hard data. regards, tom lane