From 216ce4efbce6d5f601d44f1eac0d3a4177e022ca Mon Sep 17 00:00:00 2001 From: Mehmet Yilmaz Date: Thu, 6 Nov 2025 10:45:35 +0000 Subject: [PATCH] Normalize PG18 error messages by removing subscription prefix and connection failure details Improve logical replication connection-failure messages. 0d8bd0a72ea284ffb1d1154efbe799241cc5edc6 --- src/test/regress/bin/normalize.sed | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/regress/bin/normalize.sed b/src/test/regress/bin/normalize.sed index f209a2dc8..0fc47e2fb 100644 --- a/src/test/regress/bin/normalize.sed +++ b/src/test/regress/bin/normalize.sed @@ -379,3 +379,9 @@ s/\/is still referenced from table/g # EXPLAIN (PG18+): hide Materialize storage instrumentation # this rule can be removed when PG18 is the minimum supported version /^[ \t]*Storage:[ \t].*$/d + +# PG18: drop 'subscription ""' prefix +# this rule can be removed when PG18 is the minimum supported version +s/^[[:space:]]*ERROR:[[:space:]]+subscription "[^"]+" could not connect to the publisher:[[:space:]]*/ERROR: could not connect to the publisher: /I +# PG18: drop verbose 'connection to server … failed:' preamble +s/^[[:space:]]*ERROR:[[:space:]]+could not connect to the publisher:[[:space:]]*connection to server .* failed:[[:space:]]*/ERROR: could not connect to the publisher: /I