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 5F2259FA2E6 for ; Tue, 6 Jun 2006 11:45:06 -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 03938-04 for ; Tue, 6 Jun 2006 11:44:57 -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 CA4DE9F9316 for ; Tue, 6 Jun 2006 11:44:57 -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 k56EhPHE017149; Tue, 6 Jun 2006 10:43:25 -0400 (EDT) To: Simon Riggs cc: Andrew Sullivan , pgsql-performance@postgresql.org Subject: Re: Some queries starting to hang In-reply-to: <1149604741.2621.487.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> Comments: In-reply-to Simon Riggs message dated "Tue, 06 Jun 2006 15:39:01 +0100" Date: Tue, 06 Jun 2006 10:43:25 -0400 Message-ID: <17148.1149605005@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/53 X-Sequence-Number: 19410 Simon Riggs writes: > On Mon, 2006-06-05 at 17:06 -0400, Tom Lane wrote: >> Well, it's a big query. If it ought to take a second or two, and >> instead is taking an hour or two (1800 times the expected runtime), that >> might be close enough to "never" to exhaust Chris' patience. Besides, >> we don't know whether the 1800 might itself be an underestimate (too bad >> Chris didn't provide EXPLAIN ANALYZE results). > This is a good example of a case where the inefficiency of EXPLAIN > ANALYZE would be a contributory factor to it not actually being > available for diagnosing a problem. Huh? The problem is the inefficiency of the underlying query. regards, tom lane