Ashutosh Bapat <ashutosh.bapat....@gmail.com> writes:
> OJ is an outer join, AFAIU. OJ's have their own relids. If you are
> wondering why not all joins - I think inner joins need not be tracked as
> separated relations in parse tree, but OJ's need to be.

An outer join is necessarily associated with explicit JOIN syntax
in the FROM clause, and each such JOIN has its own rangetable entry
and hence a relid.  Inner joins might arise from comma syntax
(that is, "SELECT ... FROM tab1, tab2").  For perhaps-historical
reasons that syntax doesn't give rise to an explicit RTE_JOIN
rangetable entry, so the implied join has no relid.

                        regards, tom lane


Reply via email to