Calling a plpgsql function with an array of results?

From: Wells Oliver <wellsoliver(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Calling a plpgsql function with an array of results?
Date: 2012-04-24 00:29:47
Message-ID: CAOC+FBVKX9y1Cpb2ZSv2mnykWo7w9cwmorpXeh=Q1Je+SY5DLg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Trying to call my function like so:

select myschema.myfunction(select myid from mytable);

myfunction has the signature: myfunction(integer[])

myid is an integer; I am trying to select them as an array to pass to the
function.

Where am I going wrong? Thanks!

--
Wells Oliver
wellsoliver(at)gmail(dot)com

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Naoko Reeves 2012-04-24 04:09:28 Re: Calling a plpgsql function with an array of results?
Previous Message Jesper Krogh 2012-04-23 18:53:42 Re: Partial substrings in FTS