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 E6AC79FA2E6 for ; Tue, 6 Jun 2006 12:14:32 -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 14564-01 for ; Tue, 6 Jun 2006 12:14:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id AA67F9F9316 for ; Tue, 6 Jun 2006 12:14:24 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 27E6D56451; Tue, 6 Jun 2006 10:14:19 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 6 Jun 2006 10:14:17 -0500 Date: Tue, 6 Jun 2006 10:14:17 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: Simon Riggs , Andrew Sullivan , pgsql-performance@postgresql.org Subject: Re: Some queries starting to hang Message-ID: <20060606151416.GD53487@pervasive.com> 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> <17426.1149606369@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17426.1149606369@sss.pgh.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060606:tgl@sss.pgh.pa.us::DndQk2CJYX8dNxW3:00000000000000000000 000000000000000000000000A6Hq X-Hashcash: 1:20:060606:simon@2ndquadrant.com::Jvm7JbVlMsS8P3VE:0000000000000000 0000000000000000000000002p0W X-Hashcash: 1:20:060606:ajs@crankycanuck.ca::JYK6VyMTnwsmunYp:000000000000000000 00000000000000000000000035xr X-Hashcash: 1:20:060606:pgsql-performance@postgresql.org::X9JI2x7QXHKbhZUp:00000 0000000000000000000000004gp+ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/57 X-Sequence-Number: 19414 On Tue, Jun 06, 2006 at 11:06:09AM -0400, Tom Lane wrote: > > 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. Does that really matter, though? The point is to find the node where the estimate proved to be fantasy. It might even make sense to highlight that node in the output, so that users don't have to wade through a sea of numbers to find it. If it is important to report how far along the query got, it seems that could always be added to the explain output. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461