pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-sql@postgresql.org
Subject: contrib/intarray
Date: Fri, 31 May 2002 11:18:00 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0205311112210.26712-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <011501c2037f$ad4b5340$9865fea9@Allan>


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

-- 
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr




view thread (2+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0205311112210.26712-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0205311112210.26712-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0205311112210.26712-100000@matrix.gatewaynet.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: contrib/intarray
  In-Reply-To: <Pine.LNX.4.44.0205311112210.26712-100000@matrix.gatewaynet.com>

* 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