pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Patrick Hatcher <PHatcher@macys.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Slow query. Any way to speed up?
Date: Fri, 06 Jan 2006 00:07:57 -0500
Message-ID: <18083.1136524077@sss.pgh.pa.us> (raw)
In-Reply-To: <OFC6D1EDF4.8BFC181B-ON882570ED.006A2849-882570EE.0003814C@FDS.com>
References: <OFC6D1EDF4.8BFC181B-ON882570ED.006A2849-882570EE.0003814C@FDS.com>

Patrick Hatcher <PHatcher@macys.com> writes:
> The following SQL takes 4+ mins to run.  I have indexes on all join fields
> and I've tried rearranging the table orders but haven't had any luck.

Please show EXPLAIN ANALYZE output, not just EXPLAIN.  It's impossible
to tell whether the planner is making any wrong guesses when you can't
see the actual times/rowcounts ...

(BTW, 7.4 is looking pretty long in the tooth.)

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <18083.1136524077@sss.pgh.pa.us>
Permalink:  ../18083.1136524077@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18083.1136524077@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, PHatcher@macys.com
  Subject: Re: Slow query. Any way to speed up?
  In-Reply-To: <18083.1136524077@sss.pgh.pa.us>

* 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