Re: full outer join performance - Mailing list pgsql-general

From Scott Marlowe
Subject Re: full outer join performance
Date
Msg-id 1126638085.12728.52.camel@state.g2switchworks.com
Whole thread Raw
In response to Re: full outer join performance  (Ben <bench@silentmedia.com>)
List pgsql-general
On Tue, 2005-09-13 at 13:28, Ben wrote:
> Hrm, as I understand that page, there's not much that can be done about
> the join order for outer joins. At least, not when there's on 3 tables
> and 1 outer join involved. Am I missing something?

You might be able to do some kind of thing like:

select * from (
    select * from table1 <whereclausehere>) as a
    ) left join (
    select * from table2 <whereclausehere) as b
on     (a.somefield=b.somefield2)
where    <anotherwhereclause)

or something.

Tom, would that help the planner make better choices for this kind of
query?

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: Email Verfication Regular Expression
Next
From: Ben
Date:
Subject: Re: full outer join performance