citus/src/test/regress/bin
Mehmet YILMAZ 6506e495c4 PG18 - Normalize PG18 EXPLAIN: hide “Storage … Maximum Storage …” line (#8292)
fixes #8267 

* Extend `src/test/regress/bin/normalize.sed` to drop the new PG18
EXPLAIN instrumentation line:

  ```
  Storage: <Memory|Disk|Memory and Disk>  Maximum Storage: <size>
  ```

which appears under `Materialize`, some `CTE Scan`s, etc. when `ANALYZE`
is on.

**Why**

* PG18 added storage usage reporting for materialization/tuplestore
nodes. It’s useful for humans but creates noisy, non-semantic diffs in
regression output. There’s no EXPLAIN flag to suppress it, so we
normalize in tests instead. This PR wires that normalization into our
sed pipeline.

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=1eff8279d

**How**

* Add a narrowly scoped sed rule that matches only lines starting with
`Storage:` (keeping `Sort Method`, `Hash`, `Buffers`, etc. intact). Use
ERE compatible with `sed -Ef` and Python `re` (no POSIX character
classes), e.g.:

  ```
  /^[ \t]*Storage:[ \t].*$/d
  ```
2025-11-04 11:15:00 +00:00
..
test Update diff-filter to handle lines removed by normalization 2020-01-28 15:39:40 +00:00
copy_modified Replace denormalized test output with normalized at the end of the run 2020-01-24 11:42:38 +01:00
copy_modified_wrapper Add an infrastructure to run same tests with arbitrary configs (#5316) 2021-10-12 14:24:19 +03:00
create_test.py Make run_test.py and create_test.py importable without errors (#6736) 2023-02-28 00:34:42 +03:00
diff Speed up test runs on WSL2 a lot (#5736) 2022-02-23 13:03:29 +01:00
diff-filter Run python files through isort 2023-02-10 13:05:37 +01:00
normalize.sed PG18 - Normalize PG18 EXPLAIN: hide “Storage … Maximum Storage …” line (#8292) 2025-11-04 11:15:00 +00:00
test_diff Update diff-filter to handle lines removed by normalization 2020-01-28 15:39:40 +00:00