Search Postgresql Archives

Re: "RETURNS SETOF" function question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Feb 24, 2008 at 7:08 PM, Erik Jones <erik@xxxxxxxxxx> wrote:

There was an article that covered this in the Postgres Online Journal
(http://www.postgresonline.com/journal/index.php?/categories/6-pl-programming).  Basically, do this:

CREATE OR REPLACE FUNCTION foo(text, text)
       RETURNS SETOF text
$$
       SELECT * FROM foo($1, $2);
$$
LANGUAGE sql;


That one goes straight into my (still tiny) bag o' Pg tricks.  It worked like a charm.

Thanks!

G.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux