Re: Can PL/PGSQL function return multiple SETOFs

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: cyw(at)dls(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can PL/PGSQL function return multiple SETOFs
Date: 2008-10-21 04:48:54
Message-ID: 162867790810202148h29e20c33n6ec8c34e086044f3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

plpgsql should return only one set. You should to returns set of
cursors - that is real multisets.
http://www.postgresql.org/docs/8.3/interactive/plpgsql-cursors.html

regards
Pavel Stehule

2008/10/21 <cyw(at)dls(dot)net>:
> Is something like this possible?
> CREATE testsetof( IN toad_id integer) RETURNS SETOF road_table, SETOF int4
> AS $BODY$....
>
> If yes, is this the way to do 'RETURN NEXT'?
> RETURN NEXT road_table_row, an_integer;
>
> Thanks
> CYW
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message tomas 2008-10-21 06:06:12 Re: [HACKERS] Debian no longer dumps cores?
Previous Message Dave Fry 2008-10-21 00:22:24 statement_timeout by host?