pgsql: Wait for checksum state transition in test

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Wait for checksum state transition in test
Date: 2026-09-01 09:29:05
Message-ID: E1x1Kng-0000000318t-2a8a@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Wait for checksum state transition in test

The test for disabling data checksums after a failure didn't wait
for the state transition to complete before testing, which could
lead to false negatives in testing. Fix by passing the wait param
when disabling. Identified on buildfarm member culicidae.

Author: Daniel Gustafsson <daniel(at)yesql(dot)se>
Reported-by: Alexander Lakhin <exclusion(at)gmail(dot)com>
Reviewed-by: Alexander Lakhin <exclusion(at)gmail(dot)com>
Discussion: https://postgr.es/m/b2f34fd3-8e98-450e-9e8c-ac08238e9116@gmail.com
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5313fc415d90d435b91f7c0786a1630e05440759

Modified Files
--------------
src/test/modules/test_checksums/t/005_injection.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-09-01 09:29:50 pgsql: Wait for checksum state transition in test
Previous Message Daniel Gustafsson 2026-09-01 08:21:29 pgsql: Handle PG_INT32_MIN negation overflow in right()