Extend PageIsVerified() to handle more custom options
Michael Paquier <michael@paquier.xyz>
Extend PageIsVerified() to handle more custom options This is useful for checks of relation pages without having to load the pages into the shared buffers, and two cases can make use of that: page verification in base backups and the online, lock-safe, flavor. Compatibility is kept with past versions using a macro that calls the new extended routine with the set of options compatible with the original version. Extracted from a larger patch by the same author. Author: Anastasia Lubennikova Reviewed-by: Michael Paquier, Julien Rouhaud Discussion: https://postgr.es/m/608f3476-0598-2514-2c03-e05c7d2b0cbd@postgrespro.ru
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/storage.c | modified | +2 −1 |
| src/backend/storage/buffer/bufmgr.c | modified | +4 −2 |
| src/backend/storage/page/bufpage.c | modified | +15 −7 |
| src/include/storage/bufpage.h | modified | +16 −6 |
Discussion
- [patch] Fix checksum verification in base backups for zero page headers 21 messages · 2020-09-01 → 2020-10-30