pgsql: Extend PageIsVerified() to handle more custom options

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Extend PageIsVerified() to handle more custom options
Дата
Msg-id E1kWqx0-0005Rk-TO@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Extend PageIsVerified() to handle more custom options  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d401c5769ef6aeef0a28c147f3fb5afedcd59984

Modified Files
--------------
src/backend/catalog/storage.c       |  3 ++-
src/backend/storage/buffer/bufmgr.c |  6 ++++--
src/backend/storage/page/bufpage.c  | 22 +++++++++++++++-------
src/include/storage/bufpage.h       | 22 ++++++++++++++++------
4 files changed, 37 insertions(+), 16 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix corner case for a BEFORE ROW UPDATE trigger returning OLD.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: docs: Remove notes about incompatibilies with very old versions.