pgsql: Mark shared buffer lookup table HASH_FIXED_SIZE

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Mark shared buffer lookup table HASH_FIXED_SIZE
Date: 2025-09-18 00:44:10
Message-ID: E1uz2ks-001FSk-1O@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Mark shared buffer lookup table HASH_FIXED_SIZE

StrategyInitialize() calls InitBufTable() with maximum number of entries that
the buffer lookup table can ever have. Thus there should not be any need to
allocate more element after initialization. Hence mark the hash table as fixed
sized.

Author: Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>
Discussion: https://postgr.es/m/CAExHW5v0jh3F_wj86yC=qBfWk0uiT94qy=Z41uzAHLHh0SerRA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0110e2ec5c0f230beb439885bd1f8505e783e742

Modified Files
--------------
src/backend/storage/buffer/buf_table.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Fujii Masao 2025-09-18 02:12:17 pgsql: pg_restore: Fix security label handling with --no-publications/s
Previous Message Michael Paquier 2025-09-17 23:49:20 Re: pgsql: Move named LWLock tranche requests to shared memory.