pgsql: Fix amcheck for page checks concurrent to replay of btree page d

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема pgsql: Fix amcheck for page checks concurrent to replay of btree page d
Дата
Msg-id E1jZAaf-00027z-L7@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix amcheck for page checks concurrent to replay of btree page deletion

amcheck expects at least hikey to always exist on leaf page even if it is
deleted page.  But replica reinitializes page during replay of page deletion,
causing deleted page to have no items.  Thus, replay of page deletion can
cause an error in concurrent amcheck run.

This commit relaxes amcheck expectation making it tolerate deleted page with
no items.

Reported-by: Konstantin Knizhnik
Discussion: https://postgr.es/m/CAPpHfdt_OTyQpXaPJcWzV2N-LNeNJseNB-K_A66qG%3DL518VTFw%40mail.gmail.com
Author: Alexander Korotkov
Reviewed-by: Peter Geoghegan
Backpatch-through: 11

Branch
------
REL_11_STABLE

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

Modified Files
--------------
contrib/amcheck/verify_nbtree.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)


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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Fix amcheck for page checks concurrent to replay of btree page d
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix typo in comment on OpenSSL PEM password callback type name.