Skip to content

Add PostgreSQL CREATE/ALTER TEXT SEARCH DDL Parsing#2250

Open
LucaCappelletti94 wants to merge 5 commits intoapache:mainfrom
LucaCappelletti94:postgres-regression-5
Open

Add PostgreSQL CREATE/ALTER TEXT SEARCH DDL Parsing#2250
LucaCappelletti94 wants to merge 5 commits intoapache:mainfrom
LucaCappelletti94:postgres-regression-5

Conversation

@LucaCappelletti94
Copy link
Copy Markdown
Contributor

Adds parser and AST support for PostgreSQL text search DDL statements:

  • CREATE TEXT SEARCH DICTIONARY ...
  • CREATE TEXT SEARCH CONFIGURATION ...
  • CREATE TEXT SEARCH TEMPLATE ...
  • CREATE TEXT SEARCH PARSER ...
  • ALTER TEXT SEARCH DICTIONARY ...
  • ALTER TEXT SEARCH CONFIGURATION ...
  • ALTER TEXT SEARCH TEMPLATE ...
  • ALTER TEXT SEARCH PARSER ...

The work also adds focused regression coverage for previously failing cases.

@LucaCappelletti94 LucaCappelletti94 marked this pull request as ready for review February 27, 2026 07:42
Comment thread src/parser/mod.rs Outdated
Comment thread src/parser/mod.rs Outdated
Comment thread src/parser/mod.rs Outdated
Comment thread tests/sqlparser_postgres.rs Outdated
Comment thread tests/sqlparser_postgres.rs Outdated
@LucaCappelletti94 LucaCappelletti94 force-pushed the postgres-regression-5 branch 2 times, most recently from dabed7d to 182faf5 Compare April 10, 2026 12:54
Comment thread src/ast/ddl.rs Outdated
Comment thread src/ast/ddl.rs Outdated
Comment thread src/ast/ddl.rs Outdated
Comment thread src/ast/ddl.rs Outdated
Comment thread src/ast/ddl.rs Outdated
Comment thread src/parser/mod.rs Outdated
Comment thread src/parser/mod.rs Outdated
Comment thread tests/sqlparser_postgres.rs Outdated
Comment thread tests/sqlparser_postgres.rs Outdated
Comment thread src/parser/mod.rs Outdated
Introduce AST structures for CREATE/ALTER TEXT SEARCH object types\n(dictionary, configuration, template, parser), including display\nimplementations, statement variants, From conversions, and span wiring.
Add parser support for CREATE/ALTER TEXT SEARCH DICTIONARY,\nCONFIGURATION, TEMPLATE, and PARSER forms, including operation-specific\nALTER clauses and strict CREATE option parsing.\n\nRegister text-search object names as parser keywords and reject unsupported\nCREATE modifiers for text-search objects.
Add regression coverage for the provided CREATE/ALTER TEXT SEARCH\nstatements and guardrails for rejected forms (quoted object type,\nmissing key/value option syntax, and unsupported CREATE modifiers).
@LucaCappelletti94
Copy link
Copy Markdown
Contributor Author

Ok, fully re-aligned history. I had mistakenly dropped the commits of this branch when trying to realign with main, and that caused the PR to be closed.

@LucaCappelletti94 LucaCappelletti94 requested a review from iffyio May 8, 2026 08:47
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