Re: select as params to function

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Andy Colson <andy(at)squeakycode(dot)net>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: select as params to function
Date: 2012-02-17 20:49:38
Message-ID: CAHyXU0zghmwVDy1XmUvWqAPNAzKu0C9kL0S3LA9JQWB5BXZxtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Feb 17, 2012 at 2:32 PM, Andy Colson <andy(at)squeakycode(dot)net> wrote:
> On 2/17/2012 2:11 PM, Pavel Stehule wrote:
>>
>> Hello
>>
>> PostgreSQL has no table data type. You can use a array of records instead
>>
>> and then
>>
>> select fx((select array(select * from tab)));

select fx(array(select t from tab t));

fx takes tab[]

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andy Colson 2012-02-17 20:58:58 Re: select as params to function
Previous Message Andy Colson 2012-02-17 20:32:19 Re: select as params to function