pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Jim C. Nasby <jim@nasby.net>
To: Merlin Moncure <mmoncure@gmail.com>
Cc: Carlo Stonebanks <stonec.register@sympatico.ca>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance Optimization for Dummies 2 - the SQL
Date: Sun, 8 Oct 2006 15:34:50 -0500
Message-ID: <20061008203450.GK72517@nasby.net> (raw )
In-Reply-To: <b42b73150610050630t76e9eedeh45a382729d35f2f6@mail.gmail.com >
References: <eft782$5a1$1@news.hub.org >
<b42b73150610030804q2719222du57c63a085e26a5a4@mail.gmail.com >
<efu8tf$1blk$1@news.hub.org >
<b42b73150610031221y4955e663ped999a83a810d318@mail.gmail.com >
<eg0u6e$hbr$1@news.hub.org >
<b42b73150610041407y3554f311u1329c4f3bdc53999@mail.gmail.com >
<eg1dai$1tfa$1@news.hub.org >
<b42b73150610042326v7fdeed17rf6b96e52a681a6db@mail.gmail.com >
<eg2cds$29en$1@news.hub.org >
<b42b73150610050630t76e9eedeh45a382729d35f2f6@mail.gmail.com >
On Thu, Oct 05, 2006 at 09:30:45AM -0400, Merlin Moncure wrote:
> I personally only use explicit joins when doing outer joins and even
> them push them out as far as possible.
I used to be like that too, until I actually started using join syntax.
I now find it's *way* easier to identify what the join conditions are,
and to seperate them from the rest of the where clause. It also makes it
pretty much impossible to mess up a join clause and get a cartesian
product.
If you are going to put the join clauses in the WHERE clause, at least
put a space between the join stuff and the rest of the WHERE clause.
In any case, this is nothing but a matter of taste in this case, unless
you set join_collapse_limit to less than 3 (or maybe 4).
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
view thread (38+ messages) latest in thread
Message-ID: <20061008203450.GK72517@nasby.net>
Permalink: ../20061008203450.GK72517@nasby.net/
Also on: postgresql.org/message-id/20061008203450.GK72517@nasby.net
copy link · copy postgr.es
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: jim@nasby.net, mmoncure@gmail.com, stonec.register@sympatico.ca
Subject: Re: Performance Optimization for Dummies 2 - the SQL
In-Reply-To: <20061008203450.GK72517@nasby.net>
* 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