Re: Enable data checksums by default
Tomas Vondra <tomas@vondra.me>
From: Tomas Vondra <tomas@vondra.me>
To: Robert Haas <robertmhaas@gmail.com>,
Peter Eisentraut <peter@eisentraut.org>
Cc: Greg Sabino Mullane <htamfids@gmail.com>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-08T18:49:36Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Avoid BufferGetLSNAtomic() calls during nbtree scans.
- e6eed40e4441 18.0 cited
-
doc PG 18 relnotes: Add incompatibility note about checksums now default
- 48814415d5aa 18.0 landed
-
Fix pg_upgrade's cross-version tests when old < 18
- 38c18710b37a 18.0 landed
-
initdb: Change default to using data checksums.
- 04bec894a04c 18.0 landed
-
Allow TAP tests to force checksums off when calling init()
- e7d0cf42b1ac 18.0 landed
-
initdb: Add new option "--no-data-checksums"
- 983a588e0b86 18.0 landed
-
Tweak docs to reduce possible impact of data checksums
- efd72a3d422b 18.0 landed
On 8/8/24 19:42, Robert Haas wrote: > On Thu, Aug 8, 2024 at 6:11 AM Peter Eisentraut <peter@eisentraut.org> wrote: >> About the claim that it's already the de-facto standard. Maybe that is >> approximately true for "serious" installations. But AFAICT, the popular >> packagings don't enable checksums by default, so there is likely a >> significant middle tier between "just trying it out" and serious >> production use that don't have it turned on. > > +1. > >> I'm thinking pg_upgrade could have a mode where it adds the >> checksum during the upgrade as it copies the files (essentially a subset >> of pg_checksums). I think that would be useful for that middle tier of >> users who just want a good default experience. > > That would be very nice. > Yeah, but it might also disable checksums on the new cluster, which would work for link mode too. So we'd probably want multiple modes, one to enable checksums during file copy, one to disable checksums, and one to just fail for incompatible clusters. -- Tomas Vondra