Re: Returning multiple result sets

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Returning multiple result sets
Дата
Msg-id 20051120140925.GB32031@svana.org
обсуждение исходный текст
Ответ на Re: Returning multiple result sets  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Ответы Re: Returning multiple result sets  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Список pgsql-hackers
On Sun, Nov 20, 2005 at 08:43:05AM +0100, Pavel Stehule wrote:
> >Consider:
> >
> >create function a(anyrecord) returns anyrecord;
> >create function b(int4) returns anyrecord;
> >
> >select a(b(2));
> >
>
> for my task I need little different form :-(
>
> create function a(..) returns setof tables
>
> but SQL2003 needs type table, and this can be solution

You want a function return entire tables at a time? Why bother when you
can just return rows and signal when the next table starts?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Returning multiple result sets
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Virtual tuple slots versus TOAST: big problem