where column in ARRAY

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: where column in ARRAY
Date: 2008-10-22 12:46:35
Message-ID: 20081022144635.55120274@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Without building up a dynamic query is it possible to:

create or replace function t1(a int[]) as
$$
...
select * from t1 where c in a; // eg in spite of in (1,2,3);

or just obtain a similar effect?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2008-10-22 12:58:21 Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4
Previous Message Andrus 2008-10-22 12:42:48 Re: Shopping cart