Skip to content

fix(parser): model PostgreSQL CREATE INDEX clauses - #2536

Merged
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/postgresql-create-index-clauses-2525
Sep 4, 2026
Merged

fix(parser): model PostgreSQL CREATE INDEX clauses#2536
manticore-projects merged 2 commits into
JSQLParser:masterfrom
minleejae:fix/postgresql-create-index-clauses-2525

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Summary

  • model key collation, operator class and parameters, sort order, and null ordering
  • add structured INCLUDE, NULLS [NOT] DISTINCT, storage parameters, tablespace, and predicate fields
  • update the CREATE INDEX deparser
  • continue mirroring key tokens in the legacy flat parameter list for compatibility

Testing

  • ./gradlew check

Fixes #2525

AI assistance

OpenAI Codex assisted with the implementation and test coverage. The changes were manually reviewed and verified against PostgreSQL syntax.

@manticore-projects
manticore-projects merged commit 3ba2546 into JSQLParser:master Sep 4, 2026
7 checks passed
@manticore-projects

Copy link
Copy Markdown
Contributor

Thank you!

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.

[BUG] 5.4-SNAPSHOT: PostgreSQL CREATE INDEX key and trailing clauses are missing

2 participants