GiST intarray rd-tree indexes using intbig - Mailing list pgsql-hackers

From Jonathan Gray
Subject GiST intarray rd-tree indexes using intbig
Date
Msg-id 007001c7aa65$0a72c120$1f584360$@com
Whole thread Raw
Responses Re: GiST intarray rd-tree indexes using intbig
List pgsql-hackers

Hello all,

 

I am working on a search-related project where scaling is a major issue.  Recently I’ve been experimenting with the beautifully designed rd-tree indexes and intarray contrib module, and it seems like a great solution for me.

 

I’ve hit a few bumps and am looking for clarification from anyone familiar with the implementation of the intbig versions of intarray.

 

It is documented that intbig utilizes 4096 bit signatures to represent the set nodes in the tree.  However, I am unable to find any reference to a 4kbit signature in the code and am wondering where this is implemented.

 

Also, is the leaf comparison also a signature comparison like the nodes?  Or is this an exact comparison?  From my understanding of the code, it doesn’t appear to be an exact comparison.  If this is the case, how can I access the original intarray that is being referenced by this signature?

 

Thanks in advance.  I have spent many hours digging through code (and deciphering macros) and need a bit of help to get a better understanding before I can move forward.

 

Jonathan Gray

pgsql-hackers by date:

Previous
From: "Dann Corbit"
Date:
Subject: Re: Issues with factorial operator
Next
From: "Nicolas Barbier"
Date:
Subject: Re: Using the GPU