Jan Bakuwel <jan.bakuwel@greenpeace.org> writes:
> What I need is the ability to name the column in the view, ie.
> create view v as select 1 as "id" from func(5);
I think what you're looking for is the ability to re-alias a column name,
for example
select id from func(5) as foo(id);
regards, tom lane