pgsql: Fix regex searching for page verification failures in tests

Started by Daniel Gustafsson3 months ago1 messagescomitters
Jump to latest
#1Daniel Gustafsson
daniel@yesql.se

Fix regex searching for page verification failures in tests

The test for finding page verification failures in the logfiles
were missing the /m modifier to make sure it anchors to every
newline in the search space buffer, and not just the last one.

Spotted while adding a test for the recently reported issue with
excessive WAL for unlogged relations.

Author: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Satyanarayana Narlapuram <satyanarlapuram@gmail.com>
Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>
Discussion: /messages/by-id/CAHg+QDeGrpZbNZdLjd_T4b43xKEEXZN0HGhkFm-1bkBdyzK7AQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/486b9a9b9eb45f48be183f0fc3cf3dc657026438

Modified Files
--------------
src/test/modules/test_checksums/t/006_pgbench_single.pl | 6 +++---
src/test/modules/test_checksums/t/007_pgbench_standby.pl | 12 ++++++------
src/test/modules/test_checksums/t/008_pitr.pl | 2 +-
src/test/modules/test_checksums/t/009_fpi.pl | 2 +-
4 files changed, 11 insertions(+), 11 deletions(-)