pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig A. James <cjames@modgraph-usa.com>
To: pgsql-performance@postgresql.org
Subject: Re: Some queries starting to hang
Date: Tue, 06 Jun 2006 10:45:09 -0700
Message-ID: <4485BF25.4080701@modgraph-usa.com> (raw)
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>

Simon Riggs 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.

This is a frustration I have, but Simon expressed it much more concisely.  The first question one gets in this forum is, "did you run EXPLAIN ANALYZE?"  But if EXPLAIN ANALYZE never finishes, you can't get the information you need to diagnose the problem.  Simon's proposal,

> e.g. EXPLAIN ANALYZE ERRLIMIT 10 SELECT ...

or something similar, would be a big help.  I.e. "If you can't finish in a reasonable time, at least tell me as much as you can."

Craig



view thread (28+ messages)  latest in thread

Message-ID: <4485BF25.4080701@modgraph-usa.com>
Permalink:  ../4485BF25.4080701@modgraph-usa.com/
Also on:    postgresql.org/message-id/4485BF25.4080701@modgraph-usa.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: cjames@modgraph-usa.com
  Subject: Re: Some queries starting to hang
  In-Reply-To: <4485BF25.4080701@modgraph-usa.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox