From a8900b57e6325e96c3756f721d5aa05c4c3c6713 Mon Sep 17 00:00:00 2001 From: Mehmet YILMAZ Date: Thu, 17 Jul 2025 15:38:06 +0300 Subject: [PATCH] PG18 - Strip decimal fractions from actual rows counts in normalize.sed (#8041) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #8040 ``` - Custom Scan (Citus Adaptive) (actual rows=0 loops=1) + Custom Scan (Citus Adaptive) (actual rows=0.00 loops=1) ``` Add a normalization rule to the pg_regress `normalize.sed` script that strips any trailing decimal fraction from actual rows= counts (e.g. turning `actual rows=0.00` into `actual rows=0`). This silences noise diffs introduced by the new PostgreSQL 18 beta’s planner output. commit b06bde5771be7b384d742a8ccdab360c5f729f28 --- src/test/regress/bin/normalize.sed | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/regress/bin/normalize.sed b/src/test/regress/bin/normalize.sed index 25bc9c15d..48396fcfd 100644 --- a/src/test/regress/bin/normalize.sed +++ b/src/test/regress/bin/normalize.sed @@ -325,3 +325,6 @@ s/\| CHECK ([a-zA-Z])(.*)/| CHECK \(\1\2\)/g # supported Postgres version. /DEBUG: drop auto-cascades to type [a-zA-Z_]*.pg_temp_[0-9]*/d + +# pg18 change: strip trailing “.00” (or “.0…”) from actual rows counts +s/(actual rows=[0-9]+)\.[0-9]+/\1/g