Skip to content

feat: model qualified PostgreSQL exclusion operators - #2678

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-exclusion-operator-reference
Open

minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-exclusion-operator-reference

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

In POSTGRESQL mode, support exclusion keys such as c WITH OPERATOR(pg_catalog.&&) in both CREATE TABLE and ALTER TABLE ADD, including quoted schemas and unqualified OPERATOR wrappers.

Add editable ExclusionOperator references with separate schema, symbol and wrapper flag, exposed through Index.ColumnParams.getExclusionOperatorReference(). Keep the existing string getter/setter compatible and share qualified-operator grammar with extension DDL. Both statement renderers consume the same AST. Includes construction/mutation, multiple-key, expression-key and legacy-syntax tests plus usage documentation.

Validation: full Gradle check on Java 17; original and rendered DDL executed on PostgreSQL 18, checking that the exclusion constraint uses pg_catalog.&& in pg_constraint/pg_operator.

Syntax reference: https://www.postgresql.org/docs/18/sql-createtable.html

Signed-off-by: minleejae <mmj9808@gmail.com>
@minleejae
minleejae force-pushed the feat/postgresql-exclusion-operator-reference branch from f01f6b6 to 8cf5398 Compare September 22, 2026 09:38

This branch has not been deployed

No deployments
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.

1 participant