Re: [GENERAL] returning a resultset from a function

2008-02-15 Thread Erik Jones
On Feb 15, 2008, at 2:56 PM, Anton Andreev wrote: Hi, How do I return a result set? Is there a better way in 'plpgsql' than the one described below? I do not want to make a select from a function(which pretty useful in many cases): SELECT * FROM getfoo(); , but I want to just call the fun

[GENERAL] returning a resultset from a function

2008-02-15 Thread Anton Andreev
Hi, How do I return a result set? Is there a better way in 'plpgsql' than the one described below? I do not want to make a select from a function(which pretty useful in many cases): SELECT * FROM getfoo(); , but I want to just call the function with SELECT getfoo(); --DROP FUNCTION getfoo();