pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add missing shmem size estimate for fast-path locking struct
Date: Sat, 04 Apr 2026 08:46:29 +0000
Message-ID: <E1w8weC-002sq1-0x@gemulon.postgresql.org> (raw)

Add missing shmem size estimate for fast-path locking struct

It's been missing ever since fast-path locking was introduced. It's a
small discrepancy, about 4 kB, but let's be tidy. This doesn't seem
worth backpatching, however; in stable branches we were less precise
about the estimates and e.g. added a 10% margin to the hash table
estimates, which is usually much bigger than this discrepancy.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c06443063f01b0996a16dea77462ac6b31eb181d

Modified Files
--------------
src/backend/storage/lmgr/lock.c | 3 +++
1 file changed, 3 insertions(+)



Message-ID: <E1w8weC-002sq1-0x@gemulon.postgresql.org>
Permalink:  ../E1w8weC-002sq1-0x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w8weC-002sq1-0x@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: heikki.linnakangas@iki.fi, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add missing shmem size estimate for fast-path locking struct
  In-Reply-To: <E1w8weC-002sq1-0x@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