From dba9379ea5a5b2bc256b7822d639c8ff524a47d1 Mon Sep 17 00:00:00 2001 From: Mehmet YILMAZ Date: Mon, 27 Oct 2025 14:37:20 +0300 Subject: [PATCH] =?UTF-8?q?PG18:=20Normalize=20EXPLAIN=20ANALYZE=20output?= =?UTF-8?q?=20for=20drop=20=E2=80=9CIndex=20Searches=E2=80=9D=20line=20(#8?= =?UTF-8?q?291)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #8265 https://github.com/postgres/postgres/commit/0fbceae841cb5a31b13d3f284ac8fdd19822eceb PostgreSQL 18 started printing an extra line in `EXPLAIN (ANALYZE …)` for index scans: ``` Index Searches: N ``` **normalize.sed**: add a rule to remove the PG18-only line ``` /^\s*Index Searches:\s*\d+\s*$/d ``` --- 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 efdff159d..06729bd16 100644 --- a/src/test/regress/bin/normalize.sed +++ b/src/test/regress/bin/normalize.sed @@ -375,3 +375,6 @@ s/\/is still referenced from table/g # pg18 extension_control_path GUC debugs # ignore any "find_in_path:" lines in test output /DEBUG: find_in_path: trying .*/d + +# PG18: EXPLAIN ANALYZE prints "Index Searches: N" for index scans — remove it +/^\s*Index Searches:\s*\d+\s*$/d