- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit2ac50f1
committed
Fix checkpointer shared memory allocation
Use Min(NBuffers, MAX_CHECKPOINT_REQUESTS) instead of NBuffers inCheckpointerShmemSize() to match the actual array size limit set inCheckpointerShmemInit(). This prevents wasting shared memory whenNBuffers > 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.usAuthor: Xuneng Zhou <xunengzhou@gmail.com>Co-authored-by: Alexander Korotkov <aekorotkov@gmail.com>1 parentb862465 commit2ac50f1
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
873 | 873 | | |
874 | 874 | | |
875 | 875 | | |
876 | | - | |
877 | | - | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
878 | 879 | | |
879 | 880 | | |
880 | | - | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
881 | 884 | | |
882 | 885 | | |
883 | 886 | | |
| |||
0 commit comments
Comments
(0)