Re: Array comparison - subset

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Christopher Murtagh <christopher(dot)murtagh(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Array comparison - subset
Date: 2006-09-03 04:59:08
Message-ID: 9051.1157259548@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Fuhr <mike(at)fuhr(dot)org> writes:
> test=> SELECT ARRAY[1, 2, 3, 4] @ ARRAY[1, 3];
> ?column?
> ----------
> t
> (1 row)

> In 8.2 the above example will work in the stock installation for
> arrays of any type (i.e., with operands of type anyarray).

[ blink... ] When did that get in, and why don't I see it in the
documentation? The operand order seems exactly backward considering
that all the pre-existing @ operators are "contained in", not
"contains". Should we flip this around before it's too late?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-09-03 05:40:15 Re: Severe problems with PostgreSQL 7.4.7 installation, please help!
Previous Message Michael Fuhr 2006-09-03 04:48:09 Re: Array comparison - subset