Skip to content

Add support for PostgreSQL DROP RULE - #2434

Open
LucaCappelletti94 wants to merge 3 commits into
apache:mainfrom
LucaCappelletti94:pg-drop-rule
Open

LucaCappelletti94 wants to merge 3 commits into
apache:mainfrom
LucaCappelletti94:pg-drop-rule

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

The parser does not recognize DROP RULE, so migration scripts and schema dumps that remove rewrite rules fail to parse. This is the companion of #2433, and the two are independent and can land in either order.

Doc: https://www.postgresql.org/docs/current/sql-droprule.html

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review August 7, 2026 07:29
@LucaCappelletti94
LucaCappelletti94 force-pushed the pg-drop-rule branch 4 times, most recently from ac7a7bd to 8cf512e Compare September 22, 2026 21:03
LucaCappelletti94 added a commit to LucaCappelletti94/sqlparser-rs that referenced this pull request Oct 1, 2026
@LucaCappelletti94 LucaCappelletti94 added enhancement New feature or request waiting on reviewer PR needs to be reviewed labels Oct 17, 2026
@codecov-commenter

codecov-commenter commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.54%. Comparing base (424378c) to head (2071d91).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2434      +/-   ##
==========================================
+ Coverage   81.52%   81.54%   +0.02%     
==========================================
  Files          42       42              
  Lines       34205    34238      +33     
  Branches    34205    34238      +33     
==========================================
+ Hits        27885    27921      +36     
+ Misses       2770     2767       -3     
  Partials     3550     3550              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request PostgreSQL waiting on reviewer PR needs to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants