summaryrefslogtreecommitdiff
path: root/src/include/c.h
diff options
context:
space:
mode:
authorAlexander Korotkov2025-08-07 11:29:02 +0000
committerAlexander Korotkov2025-08-07 11:29:02 +0000
commit466c5435fd45209546c502bd1e8ee5b76b1cc0a1 (patch)
treec7ae60664b93608532e07a87dbdc5f398a5708ce /src/include/c.h
parent90bfae9f93e7eb0328cc8288bd09234315997ec8 (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/include/c.h')
0 files changed, 0 insertions, 0 deletions