pgsql: Add missing shmem size estimate for fast-path locking struct

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add missing shmem size estimate for fast-path locking struct
Date: 2026-04-04 08:46:29
Message-ID: E1w8weC-002sq1-0x@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2026-04-04 11:09:54 pgsql: Use AVX2 for calculating page checksums where available
Previous Message Thomas Munro 2026-04-04 01:02:39 pgsql: More tar portability adjustments.