Re: Corruption during WAL replay
Robert Haas <robertmhaas@gmail.com>
From: Robert Haas <robertmhaas@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>, Daniel Gustafsson <daniel@yesql.se>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, deniel1495@mail.ru, Ibrar Ahmed <ibrar.ahmad@gmail.com>, tejeswarm@hotmail.com,
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-25T14:49:22Z
Lists: pgsql-hackers
On Fri, Mar 25, 2022 at 10:34 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > I dunno. Compatibility and speed concerns aside, that seems like an awful > lot of bits to be expending on every page compared to the value. I dunno either, but over on the TDE thread people seemed quite willing to expend like 16-32 *bytes* for page verifiers and nonces and things. For compatibility and speed reasons, I doubt we could ever get by with doing that in every cluster, but I do have some hope of introducing something like that someday at least as an optional feature. It's not like a 16-bit checksum was state-of-the-art even when we introduced it. We just did it because we had 2 bytes that we could repurpose relatively painlessly, and not any larger number. And that's still the case today, so at least in the short term we will have to choose some other solution to this problem. -- Robert Haas EDB: http://www.enterprisedb.com
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