Re: select as params to function

From: Andy Colson <andy(at)squeakycode(dot)net>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
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:58:58
Message-ID: 4F3EBF92.4070601@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/17/2012 2:49 PM, Merlin Moncure wrote:
> 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
>

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

Thanks,

-Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2012-02-17 21:15:46 Re: MySQL search query is not executing in Postgres DB
Previous Message Merlin Moncure 2012-02-17 20:49:38 Re: select as params to function