Re: Array intersection

From: "Merlin Moncure" <mmoncure(at)gmail(dot)com>
To: "Josh Trutwin" <josh(at)trutwins(dot)homeip(dot)net>
Cc: Rodrigo De León <rdeleonp(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Array intersection
Date: 2007-10-17 16:33:13
Message-ID: b42b73150710170933sf246dc6yf0ec1aa1043e58b6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/17/07, Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> wrote:
> On Wed, 17 Oct 2007 11:12:27 -0500
> "Rodrigo De León" <rdeleonp(at)gmail(dot)com> wrote:
>
> > On 10/17/07, Josh Trutwin <josh(at)trutwins(dot)homeip(dot)net> wrote:
> > > nm - I just wrote a function - though curious if this is the most
> > > effecient way:
> >
> > If you only want TRUE or FALSE, you can use '&&':
> >
> > t=# SELECT '{1,2}'::INT[] && '{2,3}'::INT[];
> > ?column?
> > ----------
> > t
> > (1 row)
>
> Is that 8.2 or above? I'm on 8.1.10:

introduced in 8.2

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Trutwin 2007-10-17 16:39:46 Re: Array intersection
Previous Message Josh Trutwin 2007-10-17 16:31:51 Re: Array intersection