Re: Corruption during WAL replay
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>, deniel1495@mail.ru,
Ibrar Ahmed <ibrar.ahmad@gmail.com>, tejeswarm@hotmail.com,
Andres Freund <andres@anarazel.de>, hlinnaka <hlinnaka@iki.fi>,
Masahiko Sawada <masahiko.sawada@2ndquadrant.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>,
Daniel Wood <hexexpert@comcast.net>
Date: 2022-03-25T01:22:38Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes: > I hate to say "no" because the evidence suggests that the answer might > be "yes" -- but it definitely isn't intending to change anything about > the shutdown sequence. It just introduces a mechanism to backends to > force the checkpointer to delay writing the checkpoint record. Wait a minute, I think we may be barking up the wrong tree. The three commits that serinus saw as new in its first failure were ce95c54376 Thu Mar 24 20:33:13 2022 UTC Fix pg_statio_all_tables view for multiple TOAST indexes. 7dac61402e Thu Mar 24 19:51:40 2022 UTC Remove unused module imports from TAP tests 412ad7a556 Thu Mar 24 18:52:28 2022 UTC Fix possible recovery trouble if TRUNCATE overlaps a checkpoint. I failed to look closely at dragonet, but I now see that its first failure saw ce95c54376 Thu Mar 24 20:33:13 2022 UTC Fix pg_statio_all_tables view for multiple TOAST indexes. 7dac61402e Thu Mar 24 19:51:40 2022 UTC Remove unused module imports from TAP tests serinus is 0-for-3 since then, and dragonet 0-for-4, so we can be pretty confident that the failure is repeatable for them. That means that the culprit must be ce95c54376 or 7dac61402e, not anything nearby such as 412ad7a556. It's *really* hard to see how the pg_statio_all_tables change could have affected this. So that leaves 7dac61402e, which did this to the test script that's failing: use strict; use warnings; -use Config; use PostgreSQL::Test::Cluster; use PostgreSQL::Test::Utils; Discuss. regards, tom lane
Commits
-
Harden TAP tests that intentionally corrupt page checksums.
- d09f765b9dcb 12.11 landed
- 6e9ffcf13a4a 13.7 landed
- 579cef5faf11 14.3 landed
- 3d263b09058a 11.16 landed
- 174877f1e344 15.0 landed
-
Fix possible recovery trouble if TRUNCATE overlaps a checkpoint.
- 412ad7a55639 15.0 landed
- 57f618310f83 10.21 landed
- 118f1a332b00 11.16 landed
- 3821d66a7b3e 12.11 landed
- 1ce14b6b2fe4 13.7 landed
- bbace5697df1 14.3 landed
-
Remember to reset yy_start state when firing up repl_scanner.l.
- ef9706bbc8ce 14.2 cited