pgsql: Fix cleanup lock acquisition in SPLIT_ALLOCATE_PAGE replay.
В списке pgsql-committers по дате отправления:
| От | Amit Kapila |
|---|---|
| Тема | pgsql: Fix cleanup lock acquisition in SPLIT_ALLOCATE_PAGE replay. |
| Дата | |
| Msg-id | E1ouRwq-00072L-R5@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Fix cleanup lock acquisition in SPLIT_ALLOCATE_PAGE replay. During XLOG_HASH_SPLIT_ALLOCATE_PAGE replay, we were checking for a cleanup lock on the new bucket page after acquiring an exclusive lock on it and raising a PANIC error on failure. However, it is quite possible that checkpointer can acquire the pin on the same page before acquiring a lock on it, and then the replay will lead to an error. So instead, directly acquire the cleanup lock on the new bucket page during XLOG_HASH_SPLIT_ALLOCATE_PAGE replay operation. Reported-by: Andres Freund Author: Robert Haas Reviewed-By: Amit Kapila, Andres Freund, Vignesh C Backpatch-through: 11 Discussion: https://postgr.es/m/20220810022617.fvjkjiauaykwrbse@awork3.anarazel.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/e848be60b5cf9a883765ea8e98c411e7fef0c1c6 Modified Files -------------- src/backend/access/hash/hash_xlog.c | 5 ++--- src/backend/access/hash/hashpage.c | 10 +++++++--- 2 files changed, 9 insertions(+), 6 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера