Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 79A4E476602 for ; Fri, 31 May 2002 07:12:32 -0400 (EDT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by postgresql.org (Postfix) with ESMTP id 9F8FF4765BF for ; Fri, 31 May 2002 07:10:15 -0400 (EDT) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.3/8.9.3) with ESMTP id OAA17696; Fri, 31 May 2002 14:10:05 +0300 (GMT) Date: Fri, 31 May 2002 14:10:05 +0300 (GMT) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: Achilleus Mantzios Cc: pgsql-sql@postgresql.org Subject: Re: contrib/intarray In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200205/327 X-Sequence-Number: 7962 There is probably a bug in gist__int_ops ( 'contained' ops used instead of '=') We'll submit fix later Oleg On Fri, 31 May 2002, Achilleus Mantzios wrote: > > Hi i found a rather strange behaviour in intarray. > > When i dont use indices or use the intbig version it works as expected. > When i use gist__intbig_ops index, i returns something like "contained". > To illustrate: (it is on the test__int table provided in the package). > > treetest=# DROP INDEX text_idx; > DROP > treetest=# select * from test__int where a= '{1}'; > a > --- > (0 rows) > > treetest=# CREATE INDEX text_idx on test__int using gist ( a > gist__intbig_ops ); > CREATE > treetest=# select * from test__int where a= '{1}'; > a > --- > (0 rows) > > treetest=# DROP INDEX text_idx; > DROP > treetest=# CREATE INDEX text_idx on test__int using gist ( a gist__int_ops > ); > CREATE > treetest=# select * from test__int where a= '{1}' limit 5; > a > ----------------- > {11,56,1} > {34,1,39,16} > {41,1,87,40,60} > {41,64,10,1} > {60,88,95,1} > (5 rows) > > treetest=# > > When the gist__int_ops index is created the result is different > > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83