From: Kasper Sandberg <kontakt@sandberg-consult.dk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6530: intarray documentation could do with a warning about operators
Date: Mon, 09 Apr 2012 18:21:56 +0200
Message-ID: <4F830CA4.8090808@sandberg-consult.dk> (raw)
In-Reply-To: <8741.1333988189@sss.pgh.pa.us>
References: <E1S7VGu-0004T8-NT@wrigleys.postgresql.org>
<CA+TgmoaMqMJBpONW9HRhH95yidzjvf1EjF-oVgmFFD_ReFnKAQ@mail.gmail.com>
<8741.1333988189@sss.pgh.pa.us>
yes, I could not figure out why my GIN index was not used, this is what
i meant.
On 09/04/12 18:16, Tom Lane wrote:
> Robert Haas<robertmhaas@gmail.com> writes:
>> We do have this:
>> <para>
>> The operators<literal>&&</>,<literal>@></> and
>> <literal><@</> are equivalent to<productname>PostgreSQL</>'s built-in
>> operators of the same names, except that they work only on integer arrays
>> that do not contain nulls, while the built-in operators work for any array
>> type. This restriction makes them faster than the built-in operators
>> in many cases.
>> </para>
>> But maybe some more explicit warning is needed. Not sure exactly what.
> I think the gripe is basically that, while these operators might be
> equivalent to the built-in ones as far as results go, they are not
> equivalent in terms of their ability to match to indexes. But not
> sure how we turn that observation into useful documentation.
>
> regards, tom lane
--
Kasper Sandberg
Sandberg Enterprises
+45 51944242
http://www.sandbergenterprises.dk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kontakt@sandberg-consult.dk, tgl@sss.pgh.pa.us, robertmhaas@gmail.com
Subject: Re: BUG #6530: intarray documentation could do with a warning about operators
In-Reply-To: <4F830CA4.8090808@sandberg-consult.dk>
References: <E1S7VGu-0004T8-NT@wrigleys.postgresql.org> <CA+TgmoaMqMJBpONW9HRhH95yidzjvf1EjF-oVgmFFD_ReFnKAQ@mail.gmail.com> <8741.1333988189@sss.pgh.pa.us> <4F830CA4.8090808@sandberg-consult.dk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox