pgsql: Fix regex searching for page verification failures in tests

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix regex searching for page verification failures in tests
Date: 2026-05-06 10:39:47
Message-ID: E1wKZfP-000ZiN-05@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)yesql(dot)se>
Reviewed-by: Satyanarayana Narlapuram <satyanarlapuram(at)gmail(dot)com>
Reviewed-by: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
Discussion: https://postgr.es/m/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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2026-05-06 10:56:50 pgsql: Fix WAIT FOR LSN cleanup on subtransaction abort
Previous Message Daniel Gustafsson 2026-05-06 10:39:46 pgsql: Skip WAL for unlogged main fork during online checksum enable