Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 4E1BA153F352 for ; Mon, 9 Apr 2012 13:22:17 -0300 (ADT) Received: from mainserver.ntd-offshore.com ([62.242.235.90]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHHM7-0002wa-Ji for pgsql-bugs@postgresql.org; Mon, 09 Apr 2012 16:22:16 +0000 Received: from [192.168.0.107] (unknown [92.246.21.159]) by mainserver.ntd-offshore.com (Postfix) with ESMTPSA id F309E40704E4; Mon, 9 Apr 2012 18:22:00 +0200 (CEST) Message-ID: <4F830CA4.8090808@sandberg-consult.dk> Date: Mon, 09 Apr 2012 18:21:56 +0200 From: Kasper Sandberg Organization: Sandberg Enterprises User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120220 Thunderbird/10.0.1 MIME-Version: 1.0 To: Tom Lane CC: Robert Haas , pgsql-bugs@postgresql.org Subject: Re: BUG #6530: intarray documentation could do with a warning about operators References: <8741.1333988189@sss.pgh.pa.us> In-Reply-To: <8741.1333988189@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/52 X-Sequence-Number: 32803 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 writes: >> We do have this: >> >> The operators&&,@> and >> <@ are equivalent toPostgreSQL'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. >> >> 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