pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark shared buffer lookup table HASH_FIXED_SIZE
Date: Thu, 18 Sep 2025 00:44:10 +0000
Message-ID: <E1uz2ks-001FSk-1O@gemulon.postgresql.org> (raw)

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.bapat.oss@gmail.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(-)



Message-ID: <E1uz2ks-001FSk-1O@gemulon.postgresql.org>
Permalink:  ../E1uz2ks-001FSk-1O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uz2ks-001FSk-1O@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Mark shared buffer lookup table HASH_FIXED_SIZE
  In-Reply-To: <E1uz2ks-001FSk-1O@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox