Skip to content

Commit b797917

Browse files
committed
docs: define regression SQL split fallback
1 parent ca78d6b commit b797917

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/superpowers/specs/2026-06-11-postgresql-libpg-query-compatibility-design.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Normal comparison runs use committed pin metadata and do not silently advance br
5353
For every SQL file under `test/sql/postgres_regress/`:
5454

5555
1. Read the complete file.
56-
2. Split it with `pg_query_split_with_parser()`, preserving source file, byte offset, and statement length.
56+
2. Split it with `pg_query_split_with_parser()`, preserving source file, byte offset, and statement length. If intentional negative tests or psql-only content make parser splitting reject the complete file, fall back to `pg_query_split_with_scanner()` and validate every resulting candidate independently.
5757
3. Parse each statement independently through `libpg_query` protobuf output.
5858
4. Exclude statements rejected by the oracle, psql-only input, and empty fragments from parity totals.
5959
5. Store accepted statements in a deterministic JSON Lines inventory.

0 commit comments

Comments
 (0)