Fix new recovery test for log_error_verbosity=verbose case
authorAndrew Dunstan
Fri, 29 Jul 2022 21:43:34 +0000 (17:43 -0400)
committerAndrew Dunstan
Fri, 29 Jul 2022 22:17:17 +0000 (18:17 -0400)
The new test is from commit 9e4f914b5e.

With this setting messages have SQL error numbers included, so that
needs to be provided for in the pattern looked for.

Backpatch to all live branches like the original.

src/test/recovery/t/033_replay_tsp_drops.pl

index 7cd55742fc078516bec560e8061b2aa2e1b5f3ad..5c29cf55e7deb5d7c0e732d74907a34149b054e2 100644 (file)
@@ -139,7 +139,7 @@ while ($max_attempts-- >= 0)
    last
      if (
        find_in_log(
-           $node_standby, "WARNING:  creating missing directory: pg_tblspc/",
+           $node_standby, qr!WARNING: ( [A-Z0-9]+:)? creating missing directory: pg_tblspc/!,
            $logstart));
    sleep 1;
 }