1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-31 10:30:33 +03:00
Files
postgres/src/backend/postmaster
Alexander Korotkov 2ac50f1187 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>
2025-08-07 14:31:23 +03:00
..
2023-01-02 15:00:37 -05:00
2023-02-03 11:29:46 +13:00
2023-10-02 12:49:25 +03:00
2023-02-17 14:26:42 +09:00
2023-02-17 14:26:42 +09:00
2023-02-17 14:26:42 +09:00
2023-02-03 11:29:46 +13:00