Re: Array comparison - subset

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: Array comparison - subset
Дата
Msg-id 20060903133204.GA67646@winnie.fuhr.org
обсуждение исходный текст
Ответ на Re: Array comparison - subset  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sun, Sep 03, 2006 at 12:59:08AM -0400, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.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?

Looks like it arrived with the gin code.

http://archives.postgresql.org/pgsql-committers/2006-05/msg00007.php
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/catalog/pg_operator.h.diff?r1=1.142&r2=1.143

> 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?

I'd favor consistency, although I see that contrib/intarray has had
it backwards for a long time :-(

--
Michael Fuhr

В списке pgsql-general по дате отправления:

Предыдущее
От: "Peter Bauer"
Дата:
Сообщение: Re: Severe problems with PostgreSQL 7.4.7 installation, please help!
Следующее
От: mdean
Дата:
Сообщение: Re: [pgsql-advocacy] Thought provoking piece on NetBSD