Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group