pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Josh Berkus <josh@agliodbs.com>
Cc: Roman Fail <rfail@posportal.com>
Cc: sszabo@megazone23.bigpanda.com
Cc: pgsql-performance@postgresql.org
Subject: Re: 7.3.1 New install, large queries are slow
Date: Thu, 16 Jan 2003 09:52:47 -0800
Message-ID: <web-2316240@davinci.ethosmedia.com> (raw)
In-Reply-To: <16505.1042738209@sss.pgh.pa.us>

Tom,

> The list of explicit JOINs as you have here is a good way to proceed
> *if* you write the JOINs in an appropriate order for implementation.
> I believe the problem with Roman's original query was that he listed
> the JOINs in a bad order.  Unfortunately I didn't keep a copy of that
> message, and the list archives seem to be a day or more behind...
> but at least for these WHERE conditions, it looks like the best bet
> would to join m to b (I'm assuming m.merchid is unique), then to t,
> then to d, then add on the others.

I realize that I've contributed nothing other than bug reports to the
parser design.  But shouldn't Postgres, given a free hand, figure out
the above automatically?    I'd be embarassed if MS could one-up us in
parser planning anywhere, theirs sucks on sub-selects ....

-Josh Berkus



view thread (66+ messages)  latest in thread

Message-ID: <web-2316240@davinci.ethosmedia.com>
Permalink:  ../web-2316240@davinci.ethosmedia.com/
Also on:    postgresql.org/message-id/web-2316240@davinci.ethosmedia.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us, rfail@posportal.com, sszabo@megazone23.bigpanda.com
  Subject: Re: 7.3.1 New install, large queries are slow
  In-Reply-To: <web-2316240@davinci.ethosmedia.com>
  References: <16505.1042738209@sss.pgh.pa.us> <web-2316240@davinci.ethosmedia.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