From d961d39e762d8d4501d50e6de8e456b9a721a0eb Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Wed, 23 Jul 2025 16:01:56 +0300 Subject: [PATCH] Update pgxn/neon/relperst_cache.c Co-authored-by: Heikki Linnakangas --- pgxn/neon/relperst_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pgxn/neon/relperst_cache.c b/pgxn/neon/relperst_cache.c index a4d059cbfb..8b728dcba6 100644 --- a/pgxn/neon/relperst_cache.c +++ b/pgxn/neon/relperst_cache.c @@ -63,8 +63,10 @@ static HTAB *relperst_hash; static int relperst_hash_size = DEFAULT_RELPERST_HASH_SIZE; static NeonRelPersistenceHashControl* relperst_ctl; +/* Protects unlogged build completing while another backend is writing to it */ LWLockId finish_unlogged_build_lock; -LWLockId relperst_hash_lock; +/* Protects 'relperst_hash' */ +static LWLockId relperst_hash_lock; /* * Shared memory registration