Skip to content

Support PostgreSQL text search configuration DDL - #2722

Open
minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-text-search-config-20260925
Open

minleejae wants to merge 1 commit into
JSQLParser:masterfrom
minleejae:feat/postgresql-text-search-config-20260925

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

PostgreSQL text-search configuration DDL was unsupported, so schema scripts containing COPY/PARSER definitions or mapping changes could not be parsed.

Add structured CREATE/ALTER TEXT SEARCH CONFIGURATION nodes for COPY/PARSER sources, ADD/ALTER/DROP MAPPING, scoped or global dictionary replacement, and rename/owner/schema changes. Reuse qualified-name and identifier-list parsing, and wire statement visitors, deparsing and feature validation. Configuration/parser/dictionary names are kept separate from table references.

Tests cover the mapping forms, quoted COPY sources, dictionary lists, AST mutation, invalid input, and statement boundaries. Twelve additional scenarios were executed on PostgreSQL 18.6; configuration metadata and ordered token-to-dictionary mappings match for original SQL and both rendered forms.

Syntax references: CREATE TEXT SEARCH CONFIGURATION, ALTER TEXT SEARCH CONFIGURATION.

Validation: focused tests, JavaCC ambiguity checks, Checkstyle and Spotless on this independent branch. The combined implementation also passes the full Gradle check and Maven verify; the 1,304-input prior regression corpus has no previously successful input regressions.

Signed-off-by: minleejae <mmj9808@gmail.com>

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