-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[YSQL] Support creating an index on an array #6606
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Comments
Search the YSQL doc for |
With the above change, I seem to be able to:
|
With similar change for INT4ARRAYOID:
|
This seems to be stuck, any way to help with moving this forward? |
yugabyte-ci
added
kind/bug
This issue is a bug
priority/medium
Medium priority issue
labels
Jan 3, 2023
yugabyte-ci
added
kind/enhancement
This is an enhancement of an existing feature
and removed
kind/bug
This issue is a bug
labels
Jan 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/ysql
Yugabyte SQL (YSQL)
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-4857
Try this
The first
create index
fails thus:And the second
create index
fails thus:The workaround in each case is to create an index on the text typecast of the array. But the naïve attempt:
fails for a different reason:
(This error occurs in vanilla PG 11.2.)
So the workaround needs a nonce jacket function, thus:
This is a huge nuisance because it increases the number of artifacts that an app needs to develop, test, document, and maintain. It also means that queries must use the same jacket in order to take advantage of the index. This is yet another burden for the development shop.
The text was updated successfully, but these errors were encountered: