Skip to content

fix: segfault in pg_parse_raw::normalize - #1543

Merged
levkk merged 3 commits into
mainfrom
levkk-update-parser-normalize
Sep 14, 2026
Merged

levkk merged 3 commits into
mainfrom
levkk-update-parser-normalize

Conversation

@levkk

@levkk levkk commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Problem

pg_parse_raw::normalize generated invalid SQL AST nodes, which caused pg_parse_raw::deparse to crash with a SEGSEV. Additionally, we were not running normalize on Postgres regression tests, which would of immediately caught this.

Solution

pgdogdev/pg_raw_parse#53

Handle the special AST nodes and run normalize and deparse on the entire Postgres regression test suite + hasura e2e test suite.

@levkk
levkk requested a review from sgrif September 14, 2026 17:23
@levkk
levkk merged commit 8cee79f into main Sep 14, 2026
4 checks passed
@levkk
levkk deleted the levkk-update-parser-normalize branch September 14, 2026 17:26
@codecov

codecov Bot commented Sep 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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