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

Fixes 5026 Add PostgreSql grammar for GIN #5027

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Feb 19, 2024

fixes #5026

Basic GIN support for json columns

CREATE INDEX gin_alpha_1 ON json_gin USING GIN (alpha);

support gin operator classes (includes non json operators for completeness https://www.postgresql.org/docs/current/gin-builtin-opclasses.html)

CREATE INDEX gin_alpha_1 ON json_gin USING GIN (alpha jsonb_ops);

An operator class can be specified for each column of an index

CREATE INDEX gin_alpha_beta_5 ON json_gin USING GIN (alpha jsonb_path_ops, beta jsonb_ops);

Added fixture tests to check basic syntax permutations

@griffio griffio changed the title Add grammar for GIN Fixes #5026 Add PostgreSql grammar for GIN Feb 19, 2024
@griffio griffio changed the title Fixes #5026 Add PostgreSql grammar for GIN Fixes 5026 Add PostgreSql grammar for GIN Feb 19, 2024
@griffio griffio marked this pull request as ready for review February 19, 2024 11:46
support gin operator classes

Add fixture tests to check basic syntax
@hfhbd hfhbd enabled auto-merge (squash) March 27, 2024 18:59
@hfhbd hfhbd merged commit 1f4bb0a into cashapp:master Mar 27, 2024
12 checks passed
@griffio griffio deleted the feature-5026-add-gin branch March 28, 2024 07:04
hfhbd added a commit that referenced this pull request Apr 2, 2024
support gin operator classes

Add fixture tests to check basic syntax

Co-authored-by: Philip Wedemann <22521688+hfhbd@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PostgreSql Dialect add USING GIN to CREATE INDEX statement
2 participants