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

From Alvaro Herrera
Subject Re: Functions that return both Output Parameters and recordsets
Date
Msg-id 20070611133021.GD4251@alvh.no-ip.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
Pavel Stehule escribió:
> Hello
>
> it's not possible. PostgreSQL doesn't support multiple recordset. You
> have to have two functions.

The other idea is to declare the function to return SETOF refcursor (or
have an OUT refcursor param), and return two refcursors open with the
different recordsets.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

pgsql-general by date:

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