-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Support for creating index with text_pattern_ops #57285
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
Can you explain why you need |
We use |
@ebner, would you be able to offer an example query that is only satisfiable with Expression-based indexes are likely to be released in our next major release, this Spring. |
The queries are not different from any queries against an index without opclass and our application would not break if we removed the
We chose the opclass because of the statement "The difference from the default operator classes is that the values are compared strictly character by character rather than according to the locale-specific collation rules. This makes these operator classes suitable for use by queries involving pattern matching expressions (LIKE or POSIX regular expressions) when the database does not use the standard “C” locale." in the PostgreSQL documentation on Operator Classes. We do not use the standard C locale and we use regular expressions. Glad to hear about the upcoming expression-based indexes! |
Got it. We will support this kind of query with and without |
Great, thanks for the pointer to #50345! |
We have marked this issue as stale because it has been inactive for |
We are using text pattern indexes in jsonb like this:
CREATE INDEX ON data_29cca9f2 ((data->>'json123') text_pattern_ops)
I already found #9682 that tracks support for expression-based index columns, but I failed to find an issue for support of
text_pattern_ops
. Are there any plans for supporting any of the*_pattern_ops
available in PostgreSQL?Jira issue: CRDB-2839
The text was updated successfully, but these errors were encountered: