Fix new recovery test for log_error_verbosity=verbose case
authorAndrew Dunstan <[email protected]>
Fri, 29 Jul 2022 21:43:34 +0000 (17:43 -0400)
committerAndrew Dunstan <[email protected]>
Fri, 29 Jul 2022 22:17:55 +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 fb0b6150f27637bde092ac9420184fe705f215ea..4d2832e51bb59b4a23a40f2c34bc7bd8802bff9a 100644 (file)
@@ -133,7 +133,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;
 }