X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0A5F69FA0B9 for ; Tue, 18 Jul 2006 15:38:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77146-08 for ; Tue, 18 Jul 2006 15:38:21 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gatekeeper.daycos.com (outbound.daycos.com [204.26.70.70]) by postgresql.org (Postfix) with ESMTP id 92F779F94F3 for ; Tue, 18 Jul 2006 15:38:21 -0300 (ADT) Received: by gatekeeper.daycos.com with Internet Mail Service (5.5.2653.19) id ; Tue, 18 Jul 2006 13:37:36 -0500 Message-ID: <031936836C46D611BB1B00508BE7345D048DABB8@gatekeeper.daycos.com> From: Curtis Scheer To: Tony Wasson , Curtis Scheer 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 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/238 X-Sequence-Number: 25812 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 wrote: > On 7/18/06, Curtis Scheer 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). > >