returning a recordset from PLpg/SQL - Mailing list pgsql-sql

From Terence Kearns
Subject returning a recordset from PLpg/SQL
Date
Msg-id 4041DCBF.203@isd.canberra.edu.au
Whole thread Raw
Responses Re: returning a recordset from PLpg/SQL
Re: returning a recordset from PLpg/SQL
List pgsql-sql
Looking at the datatypes you can RETURN, it doesn't seem that there is a 
way to return a recordset

I tried
RETURNS SETOF RECORD
but that doesn't work

I even tried
RETURNS SETOF fooTable%ROWTYPE

What I would like to do is not that simple, I need to be able to 
build/declare a record definition with an arbitary list of columns and 
then return a set of that record which has it's values populated by 
queries and calculations inside the procedure.

returning an array is not a solution because I need to name all the 
columns and they will have different data types.




pgsql-sql by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Enterprice support in PostgreSQL
Next
From: Tom Lane
Date:
Subject: Re: returning a recordset from PLpg/SQL