Re: Functions that return both Output Parameters and recordsets - Mailing list pgsql-general

From Michael Fuhr
Subject Re: Functions that return both Output Parameters and recordsets
Date
Msg-id 20070611133425.GA32957@winnie.fuhr.org
Whole thread Raw
In response to Re: Functions that return both Output Parameters and recordsets  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-general
On Mon, Jun 11, 2007 at 03:20:15PM +0200, Pavel Stehule wrote:
> it's not possible. PostgreSQL doesn't support multiple recordset. You
> have to have two functions.

If you don't mind handling cursors then you could return multiple
cursors from one function.  See the PL/pgSQL documentation for an
example (the example is at the bottom of the page).

http://www.postgresql.org/docs/8.2/interactive/plpgsql-cursors.html

--
Michael Fuhr

pgsql-general by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: transaction problem using cursors
Next
From: "Pavel Stehule"
Date:
Subject: Re: transaction problem using cursors