>> Hm. I'd sort of expect the "z" to become both the table and column

Bruce Momjian <bruce@momjian.us>

Commit: 4f63e11646dad37f5bb8445d8699f952801b7f8a
Author: Bruce Momjian <bruce@momjian.us>
Date: 2002-08-06T05:34:10Z
Releases: 7.3.1
>> Hm.  I'd sort of expect the "z" to become both the table and column
>> alias in this case.  What do you think?
>
> I guess that would make sense. I'll make a separate patch just for
that
> change if that's OK.
>

Simple change -- patch attached.

test=# select * from myfoo1() as z;
  z
----
   1
   2
   3
(3 rows)

Joe Conway

Files

PathChange+/−
src/backend/parser/parse_relation.c modified +2 −2