-
Notifications
You must be signed in to change notification settings - Fork 4.1k
sql: inverted index on array types #43199
Copy link
Copy link
Closed
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Description
This issue tracks adding an inverted index access method (GIN index in Postgres) for array types.
The encoding for these should be a simpler version of what we have for JSON inverted indexes. The index should be usable to satisfy queries of the form:
CREATE TABLE a (a INT PRIMARY KEY, b INT[];
SELECT * FROM a WHERE $1 = ANY(b)
with a tight index span.
The optimizer should also be able to plan zigzag joins against these indexes when there's a conjunction of this form.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-sql-pgcompatSemantic compatibility with PostgreSQLSemantic compatibility with PostgreSQLC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)