Re: Can a function return more then one table? - Mailing list pgsql-general

From Sergey Konoplev
Subject Re: Can a function return more then one table?
Date
Msg-id CAL_0b1t1yv4LihAZajL7ebDibLcfN4+mc3pTDp+7DT5=F1SmKQ@mail.gmail.com
Whole thread Raw
In response to Re: Can a function return more then one table?  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-general
On Wed, Jan 11, 2012 at 10:47 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> * return setof refcursors
> * use arrays instead tables and returns arrays (for tables less 10000 rows)

One more option is to use hstore plus populate_record().

>
> Regards
>
> Pavel Stehule
>
>> Mike
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general



--
Sergey Konoplev

Blog: http://gray-hemp.blogspot.com
LinkedIn: http://ru.linkedin.com/in/grayhemp
JID/GTalk: gray.ru@gmail.com Skype: gray-hemp

pgsql-general by date:

Previous
From: Kirill Müller
Date:
Subject: Enumeration of tables is very slow in largish database
Next
From: Guillaume Lelarge
Date:
Subject: Re: Enumeration of tables is very slow in largish database