From de433e4092e33e49a5f01c71d5ab6b34320167cd Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 17 Mar 2026 19:06:04 +0200 Subject: [PATCH 1/2] fix crash on killing items on hash overflow pages --- src/backend/access/hash/hashutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/access/hash/hashutil.c b/src/backend/access/hash/hashutil.c index 3e16119d027..081adbc88a6 100644 --- a/src/backend/access/hash/hashutil.c +++ b/src/backend/access/hash/hashutil.c @@ -600,7 +600,7 @@ _hash_kill_items(IndexScanDesc scan) * update the page while just holding a share lock. If we * are not allowed, there's no point continuing. */ - if (!BufferBeginSetHintBits(so->currPos.buf)) + if (!BufferBeginSetHintBits(buf)) goto unlock_page; } @@ -621,7 +621,7 @@ _hash_kill_items(IndexScanDesc scan) if (killedsomething) { opaque->hasho_flag |= LH_PAGE_HAS_DEAD_TUPLES; - BufferFinishSetHintBits(so->currPos.buf, true, true); + BufferFinishSetHintBits(buf, true, true); } unlock_page: -- 2.47.3