Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I have committed new warning code to alert users who auto-create
> relations without knowing it.
> The code issues the warning if it auto-creates a range table entry, and
> there is already a range table entry identified as coming from a FROM
> clause. Correlated subqueries should not be a problem because they are
> not auto-created.
I still prefer the suggestion I made before: complain only if the
implicit FROM entry is for a table already present in the rangelist
(under a different alias, obviously). The fact that that choice
would not break any existing regression tests seems relevant...
regards, tom lane