Re: Support for functions returning mutliple result sets?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Support for functions returning mutliple result sets?
Дата
Msg-id 23868.1074831716@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Support for functions returning mutliple result sets?  (<bill.postgresql-users@mcmilleon.com>)
Список pgsql-general
<bill.postgresql-users@mcmilleon.com> writes:
> Does postgres support returning multiple sets from a function?

Not directly.  You can fake it in some cases by returning several open
cursors and expecting the caller to fetch from those cursors.  However,
if you can't write SQL queries that can be executed to return each of
the needed return sets, you're out of luck --- there's nothing so
flexible as RETURN NEXT.

I don't think this is an unfixable limitation; the needed mechanisms
all exist, it's a matter of figuring out what a reasonable syntactic
representation would look like.  Any thoughts?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: embedded/"serverless" (Re: serverless postgresql)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Parsing bug?