| From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Optimize shared memory usage for WaitLSNProcInfo |
| Date: | 2025-11-18 07:50:42 |
| Message-ID: | E1vLGU6-0007Bb-18@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Xuneng Zhou <xunengzhou(at)gmail(dot)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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Álvaro Herrera | 2025-11-18 15:36:01 | pgsql: Log a note at program start when running in dry-run mode |
| Previous Message | Michael Paquier | 2025-11-18 06:50:22 | pgsql: pg_buffercache: Fix incorrect result cast for relforknumber |