Normalize PG18 error messages by removing subscription prefix and connection failure details

Improve logical replication connection-failure messages.
0d8bd0a72ea284ffb1d1154efbe799241cc5edc6
pull/8326/head
Mehmet Yilmaz 2025-11-06 10:45:35 +00:00
parent b2356f1c85
commit 216ce4efbc
1 changed files with 6 additions and 0 deletions

View File

@ -379,3 +379,9 @@ s/\<is referenced from table\>/is still referenced from table/g
# EXPLAIN (PG18+): hide Materialize storage instrumentation # EXPLAIN (PG18+): hide Materialize storage instrumentation
# this rule can be removed when PG18 is the minimum supported version # this rule can be removed when PG18 is the minimum supported version
/^[ \t]*Storage:[ \t].*$/d /^[ \t]*Storage:[ \t].*$/d
# PG18: drop 'subscription "<name>"' 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