-
-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add GiST and SP-GiST support #5
Comments
Hi, any news on this? The PR looks stalled as it's 1 year old, but there's no info on the blockers or the status. How can we help? 🔨 |
If I recall correctly, the state of the branch (which hasn't been touched in a year 😮) is that we managed to get GiST and SP-GiST operator classes to compile and run. However, tests either returned wrong results or were significantly slower than no index. There probably is either a logical error or a misimplementation of (SP-)GiST. Help is very much welcomed! The branch should be rebased (or maybe it's easier to simply copy the opclass since so much has changed). Then, we need to figure out what is wrong with our implementation. My implementation is based off the SP-GiST docs and GiST docs but if anyone has some other reference implementation that could be helpful. |
Cool, we will take a look at it. I have some ideas I'd like to test 😃 But first, I have a question related to these functions ( |
That sounds great 😃 You are correct that the bitwise logic is mostly unused. I have directly copied The branch is very much a work-in-progress, and it would probably better to only include the necessary macros. |
As you asked for some references about GiST:
And, regarding the bitwise version, I just made a PR instead of a codeblock in this comment :) |
I've split the old branch into two, so we can get GiST working and merged before moving on to SP-GiST. |
Hi, you mentioned above that using the GiST index can lead to slower results - is there more known about the causes of this? Are some kinds of queries more affected than others? |
It is not a problem with GiST generally, but a problem with my initial implementation. Specifically I need to come up with good algorithms for |
Discussion continued in:
|
We should support GiST and SP-GiST indexes for operations like contains and contained by.
Ongoing work in separate PRs:
The text was updated successfully, but these errors were encountered: