From: Josh Berkus <josh@agliodbs.com>
To: pgsql-performance@postgresql.org
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Gabriele Bartolini <angusgb@tin.it>
Cc: Aaron Werman <awerman2@hotmail.com>
Subject: Re: Data warehousing requirements
Date: Thu, 7 Oct 2004 22:53:26 -0700
Message-ID: <200410072253.26169.josh@agliodbs.com> (raw)
In-Reply-To: <27539.1097203413@sss.pgh.pa.us>
References: <6.1.2.0.2.20041006230239.0201bd40@box.tin.it>
<200410071550.20665.josh@agliodbs.com>
<27539.1097203413@sss.pgh.pa.us>
Tom,
Well, I sit corrected. Obviously I misread that.
> It's not so much that they are necessarily inefficient as that they
> constrain the planner's freedom of action. You need to think a lot more
> carefully about the order of joining than when you use inner joins.
I've also found that OUTER JOINS constrain the types of joins that can/will be
used as well as the order. Maybe you didn't intend it that way, but (for
example) OUTER JOINs seem much more likely to use expensive merge joins.
--
Josh Berkus
Aglio Database Solutions
San Francisco
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: josh@agliodbs.com, tgl@sss.pgh.pa.us, angusgb@tin.it, awerman2@hotmail.com
Subject: Re: Data warehousing requirements
In-Reply-To: <200410072253.26169.josh@agliodbs.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