From: Curtis Scheer <Curtis@DAYCOS.com>
To: Tony Wasson <ajwasson@gmail.com>
To: Curtis Scheer <Curtis@DAYCOS.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to pass array of values to a stored procedure
Date: Tue, 18 Jul 2006 13:37:35 -0500
Message-ID: <031936836C46D611BB1B00508BE7345D048DABB8@gatekeeper.daycos.com> (raw)
Thanks Tom and Tony for the help, I actually implemented the solution using
a bpchar[] and hopefully the "field1 = ANY (arrayvalue)" syntax will not
hurt the query performance a lot without an index scan.
Thanks again,
Curtis
On 7/18/06, Tony Wasson <ajwasson@gmail.com> wrote:
> On 7/18/06, Curtis Scheer <Curtis@daycos.com> wrote:
> > Does anyone have any examples of how I would make a stored procedure in
> > plpgsql that would allow for passing a list or arrays of values to be
used
> > in an sql IN clause? Like so: select * from table where field1 in
(values).
> >
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: Curtis@DAYCOS.com, ajwasson@gmail.com
Subject: Re: How to pass array of values to a stored procedure
In-Reply-To: <031936836C46D611BB1B00508BE7345D048DABB8@gatekeeper.daycos.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox