Re: better page-level checksums
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Robert Haas <robertmhaas@gmail.com>, Bruce Momjian <bruce@momjian.us>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-06-14T16:26:05Z
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 →
-
Rethink method for assigning OIDs to the template0 and postgres DBs.
- 2cb1272445d2 15.0 landed
-
pg_upgrade: Preserve database OIDs.
- aa01051418f1 15.0 landed
-
pg_upgrade: Preserve relfilenodes and tablespace OIDs.
- 9a974cbcba00 15.0 landed
-
Fix for new Boolean node
- cf925936ecc0 15.0 cited
-
Improve error handling of HMAC computations
- 5513dc6a304d 15.0 cited
-
Add macro RelationIsPermanent() to report relation permanence
- 95d77149c535 14.0 landed
-
Enhance nbtree index tuple deletion.
- d168b666823b 14.0 cited
Peter Geoghegan <pg@bowt.ie> writes: > On Tue, Jun 14, 2022 at 8:48 AM Robert Haas <robertmhaas@gmail.com> wrote: >> However, pg_filedump and I think also some code internal >> to PostgreSQL try to figure out what kind of page we've got by looking >> at the *size* of the special space. It's only good luck that we >> haven't had a collision there yet, and continuing to rely on that >> seems like a dead end. Perhaps we should start including a per-AM >> magic number at the beginning of the special space. It's been some years since I had much to do with pg_filedump, but my recollection is that the size of the special space is only one part of its heuristics, because there already *are* collisions. Moreover, there already are per-AM magic numbers in there that it uses to resolve those cases. They're not at the front though. Nobody has ever wanted to break on-disk compatibility just to make pg_filedump's page-type identification less klugy, so I find it hard to believe that the above suggestion isn't a non-starter. regards, tom lane