Extend PageIsVerified() to handle more custom options
authorMichael Paquier <michael@paquier.xyz>
Mon, 26 Oct 2020 00:55:28 +0000 (09:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 26 Oct 2020 00:55:28 +0000 (09:55 +0900)
commitd401c5769ef6aeef0a28c147f3fb5afedcd59984
tree3b97029410a4f0fbf26fde8e59e7429703355f13
parentba9f18abd3650e385e9a35df7145a7c38af17e92
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
src/backend/catalog/storage.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/page/bufpage.c
src/include/storage/bufpage.h