Re: select as params to function - Mailing list pgsql-general

From Andy Colson
Subject Re: select as params to function
Date
Msg-id 4F3EBF92.4070601@squeakycode.net
Whole thread Raw
In response to Re: select as params to function  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
On 2/17/2012 2:49 PM, Merlin Moncure wrote:
> On Fri, Feb 17, 2012 at 2:32 PM, Andy Colson<andy@squeakycode.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
>

Oh, I see, I need to change my function too.

Thanks,

-Andy

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: select as params to function
Next
From: Adrian Klaver
Date:
Subject: Re: MySQL search query is not executing in Postgres DB