diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2025-08-07 14:29:02 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2025-08-07 14:59:54 +0300 |
commit | 6058900348059255a8a8da6df46ff8606ca1c612 (patch) | |
tree | 086ac967aef9a75da338782d470b9025f9bf5f7b /src/bin/psql/help.c | |
parent | be26c77ef9b8613a2583853b9dd7097c5d373f48 (diff) |
Fix checkpointer shared memory allocation
Use Min(NBuffers, MAX_CHECKPOINT_REQUESTS) instead of NBuffers in
CheckpointerShmemSize() to match the actual array size limit set in
CheckpointerShmemInit(). This prevents wasting shared memory when
NBuffers > MAX_CHECKPOINT_REQUESTS. Also, fix the comment.
Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/1439188.1754506714%40sss.pgh.pa.us
Author: Xuneng Zhou <xunengzhou@gmail.com>
Co-authored-by: Alexander Korotkov <aekorotkov@gmail.com>
Diffstat (limited to 'src/bin/psql/help.c')
0 files changed, 0 insertions, 0 deletions