Joe Conway <mail@joeconway.com> writes:
> Tom Lane wrote:
>> regression=# select * from foo() as z;
>> foo
>> ------
>> 8800
>> ...
>>
>> (hm, what happened to the alias?)
> Actually nothing wrong with this one. The z is the relation alias, not
> the column alias. The column alias defaults to the function name for
> SRFs returning scalar.
Hm. I'd sort of expect the "z" to become both the table and column
alias in this case. What do you think?
Other examples look good. Code style comment:
> + if (functyptype != 'p' || (functyptype == 'p' && funcrettype != RECORDOID))
This test seems redundant, why not
if (functyptype != 'p' || funcrettype != RECORDOID)
regards, tom lane