Re: Can a function return more then one table?

From: Sergey Konoplev <gray(dot)ru(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Mike Christensen <mike(at)kitchenpc(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Can a function return more then one table?
Date: 2012-01-11 11:50:25
Message-ID: CAL_0b1t1yv4LihAZajL7ebDibLcfN4+mc3pTDp+7DT5=F1SmKQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jan 11, 2012 at 10:47 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)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(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)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(dot)ru(at)gmail(dot)com Skype: gray-hemp

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2012-01-11 13:41:41 Re: Enumeration of tables is very slow in largish database
Previous Message Kirill Müller 2012-01-11 10:07:23 Enumeration of tables is very slow in largish database