mirror of
https://github.com/postgres/postgres.git
synced 2026-03-10 18:28:35 -04:00
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> |
||
|---|---|---|
| .. | ||
| autovacuum.c | ||
| auxprocess.c | ||
| bgworker.c | ||
| bgwriter.c | ||
| checkpointer.c | ||
| fork_process.c | ||
| interrupt.c | ||
| launch_backend.c | ||
| Makefile | ||
| meson.build | ||
| pgarch.c | ||
| pmchild.c | ||
| postmaster.c | ||
| startup.c | ||
| syslogger.c | ||
| walsummarizer.c | ||
| walwriter.c | ||