Skip to content

feat: extend PostgreSQL sequence creation and alteration - #2701

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-sequence-options
Sep 25, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-sequence-options

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

PostgreSQL sequence DDL was missing persistence and existence modifiers and most non-parameter ALTER actions. OWNED BY was also restricted to the end, rejecting valid option ordering.

Share AS/OWNED BY/numeric option parsing between CREATE and ALTER while retaining the existing Sequence and SequenceOwnership APIs. Add structured creation persistence, IF [NOT] EXISTS, and ALTER rename, owner, schema and logging actions. Route both deparsers through each statement's common printer so these flags and subsequent AST edits are preserved.

Validation: full Gradle check and grammar ambiguity gate; mutation, option ordering, scoped temporary forms and following-statement tests. All 33 previously failing sequence cases, including standalone PostgreSQL regression-test inputs, execute successfully and retain their catalog results on PostgreSQL 18.6.

Signed-off-by: minleejae <mmj9808@gmail.com>
@manticore-projects
manticore-projects merged commit c12c3aa into JSQLParser:master Sep 25, 2026
10 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.

2 participants