On Tue, 22 Jul 2003, Francisco Figueiredo Jr. wrote:
> > select * from funcF();
> >
>
> Yeap, it works, but you specified integer as the return type :)
Yes, that's because I knew the void wouldn't work. :]
>
> I'd like to have the return type as void and be possible to call it with
> select * from funcF();
I don't believe it is possible. Makes sense since void doesn't really make
sense in that position in the statment.
How's this for an alternative if you really don't want any rows returned:
create function fincF ( ) returns setof integer as 'begin delete from blah; return;end;
' language 'plpgsql';
--
Nigel J. Andrews