returning a recordset from PLpg/SQL

Поиск
Список
Период
Сортировка
От Terence Kearns
Тема returning a recordset from PLpg/SQL
Дата
Msg-id 4041DCBF.203@isd.canberra.edu.au
обсуждение исходный текст
Ответы Re: returning a recordset from PLpg/SQL  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: returning a recordset from PLpg/SQL  (Richard Huxton <dev@archonet.com>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Enterprice support in PostgreSQL
Следующее
От: Tom Lane
Дата:
Сообщение: Re: returning a recordset from PLpg/SQL