From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Optimize shared memory usage for WaitLSNProcInfo
Date: Tue, 18 Nov 2025 07:50:42 +0000
Message-ID: <E1vLGU6-0007Bb-18@gemulon.postgresql.org> (raw)
Optimize shared memory usage for WaitLSNProcInfo
We need separate pairing heaps for different WaitLSNType's, because there
might be waiters for different LSN's at the same time. However, one process
can wait only for one type of LSN at a time. So, no need for inHeap
and heapNode fields to be arrays.
Discussion: https://postgr.es/m/CAPpHfdsBR-7sDtXFJ1qpJtKiohfGoj%3DvqzKVjWxtWsWidx7G_A%40mail.gmail.com
Author: Alexander Korotkov <aekorotkov@gmail.com>
Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/75e82b2f5a6f5de6b42dbd9ea73be5ff36a931b1
Modified Files
--------------
src/backend/access/transam/xlogwait.c | 42 ++++++++++++++++-------------------
src/include/access/xlogwait.h | 14 ++++++++----
2 files changed, 29 insertions(+), 27 deletions(-)
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: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Optimize shared memory usage for WaitLSNProcInfo
In-Reply-To: <E1vLGU6-0007Bb-18@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