Skip to content
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 Support For btree_gin Extension #51992

Open
logston opened this issue Jul 28, 2020 · 4 comments
Open

Add Support For btree_gin Extension #51992

logston opened this issue Jul 28, 2020 · 4 comments
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) O-community Originated from the community

Comments

@logston
Copy link
Contributor

logston commented Jul 28, 2020

Is your feature request related to a problem? Please describe.
It would be great to have support for the btree_gin extension.

Describe the solution you'd like
Ability to enable the same behavior that is available in PostgreSQL under the extension of the same name.

Describe alternatives you've considered
None at the moment. I'm simply showing interest in having this feature available.

Additional context

postgres=# CREATE EXTENSION IF NOT EXISTS btree_gin;
ERROR:  at or near "EOF": syntax error: unimplemented: this syntax
DETAIL:  source SQL:
CREATE EXTENSION IF NOT EXISTS btree_gin
                                        ^
HINT:  You have attempted to use a feature that is not yet implemented.

Please check the public issue tracker to check whether this problem is
already tracked. If you cannot find it there, please report the error
with details by creating a new issue.

If you would rather not post publicly, please contact us directly
using the support form.

We appreciate your feedback.

Jira issue: CRDB-3993

@blathers-crl
Copy link

blathers-crl bot commented Jul 28, 2020

Hello, I am Blathers. I am here to help you get the issue triaged.

I have CC'd a few people who may be able to assist you:

  • @mattcrdb (member of the technical support engineering team)

If we have not gotten back to your issue within a few business days, you can try the following:

  • Join our community slack channel and ask on #cockroachdb.
  • Try find someone from here if you know they worked closely on the area and CC them.

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan.

@blathers-crl blathers-crl bot added C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) O-community Originated from the community X-blathers-oncall labels Jul 28, 2020
@ajwerner
Copy link
Contributor

Can anybody say more about what value there'd be in adding this extension? We do support inverted indexes. My reading of the docs is that this extension is largely for testing inverted indexes.

@pquerna
Copy link

pquerna commented Apr 26, 2023

Can anybody say more about what value there'd be in adding this extension? We do support inverted indexes. My reading of the docs is that this extension is largely for testing inverted indexes.

We use btree_gin to support multi-column indexes, exactly in the pattern this blog post outlines:

https://pganalyze.com/blog/gin-index#multi-column-gin-indexes-and-combining-gin-and-b-tree-indexes

CREATE INDEX ON records USING gin (data, customer_id);

Basically we have a tenant/account/customer id which we include in every query, and we also have a JSONB or tsvector we're doing operations against.

@tyge68
Copy link

tyge68 commented Mar 13, 2024

@ajwerner any update on this, does cockroach db support this extension now ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) O-community Originated from the community
Projects
None yet
Development

No branches or pull requests

5 participants