Re: [HACKERS] OUTER joins - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] OUTER joins
Date
Msg-id 199902241027.FAA09648@candle.pha.pa.us
Whole thread Raw
In response to OUTER joins  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
> 
> How do you propose doing outer joins in non-mergejoin situations?
> Mergejoins can only be used currently in equal joins.

Is your solution going to be to make sure the OUTER table is always a
MergeJoin, or on the outside of a join loop?  That could work.

That could get tricky if the table is joined to _two_ other tables. 
With the cleaned-up optimizer, we can disable non-merge joins in certain
circumstances, and prevent OUTER tables from being inner in the others. 
Is that the plan?

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: OUTER joins
Next
From: Oleg Broytmann
Date:
Subject: Problem with complex query