Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> SELECT * FROM schema1.tab1, schema2.tab1;
> From my simplistic understanding, I would say if we allowed this, we
> would have to require the schema designtation be on every reference to
> tab1 in the query. Is that something we can do?
Well, that's what's not entirely clear to me.
If you write
SELECT ... FROM schema1.tab1 AS tab1;
then clearly this item *can* be referenced by just tab1.col1, and
probably a strict reading would say that it *must* be referenced
that way (ie, schema1.tab1.col1 should not work). But in the case
without the AS clause, I'm not at all sure what the spec means to
allow.
(BTW, the equivalent passages in SQL99 are no help; they are several
times longer but utterly fail to clarify the point.)
regards, tom lane