Re: Stored function - send array as parameter to stored function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: brian <brian(at)zijn-digital(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Stored function - send array as parameter to stored function
Date: 2008-11-13 13:04:53
Message-ID: 3341.1226581493@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

brian <brian(at)zijn-digital(dot)com> writes:
> Yes, this one got me, also. Strangely, you need to do:
> select iterate('{1,2}');

In reasonably modern versions of PG you could use an array constructor:

select iterate(array[1,2,3]);

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-11-13 13:07:48 Re: [HACKERS] ERROR: incompatible library
Previous Message Markus Wollny 2008-11-13 12:56:11 Re: Suboptimal execution plan for simple query