Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?

Поиск
Список
Период
Сортировка
От Vladimir Dzhuvinov
Тема Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?
Дата
Msg-id 48F321C8.9010008@valan.net
обсуждение исходный текст
Ответ на Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: PL/pgSQL stored procedure returning multiple result sets (SELECTs)?
Список pgsql-general
>> So, is it true that as of Postgresql 8.3 there is no way to have a
>> pgpqsql function return multiple SELECTs?

> it's true.

Thank you for the definite answer, Pavel :)

I came across a blog post of yours (
http://okbob.blogspot.com/2007/11/stacked-recordset-multirecordset.html
) as well as several list posts indicating that multiple result sets
might be in the working. Should I check the situation again when 8.4 is
released?


> You can use setof cursors instead.

Cursors, unfortunately, look cumbersome in this situation and will break
the existing API (all transactions encapsulated within SPs, clients
allowed to do CALL only). Anyway, thanks everyone for the cursors tip :)


Vladimir

--
Vladimir Dzhuvinov * www.valan.net * PGP key ID AC9A5C6C


Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "arnuld uttre"
Дата:
Сообщение: Re: user and DB confusion
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: PQexecParams question