Re: Custom types as parameter in stored function

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: mephysto <gennaria(at)email(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Custom types as parameter in stored function
Date: 2011-06-27 19:41:47
Message-ID: BANLkTi=vsSS0QWMH5OzWLdaXLfhQMqxOjQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jun 27, 2011 at 2:22 PM, mephysto <gennaria(at)email(dot)it> wrote:
> Thank you Merlin.
>
> Now, Can I pass the select as an argument of my function?

sure:
select myfunc(populate_record(null::t, 'b=>9, a=>2'));

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-06-27 22:16:10 Re: Live records and number of records are differents...
Previous Message mephysto 2011-06-27 19:22:36 Re: Custom types as parameter in stored function