summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAlexander Korotkov2025-07-27 12:10:01 +0000
committerAlexander Korotkov2025-07-27 12:10:24 +0000
commit13559de95383b493a6e6384dcb621947bb8bcc23 (patch)
tree77ef7e8dcd66d120769bb1376019610616c93cf6 /configure.ac
parent967309116f0d2cda20228229b2fd212948fd0385 (diff)
Limit checkpointer requests queue sizeREL_17_STABLE
If the number of sync requests is big enough, the palloc() call in AbsorbSyncRequests() will attempt to allocate more than 1 GB of memory, resulting in failure. This can lead to an infinite loop in the checkpointer process, as it repeatedly fails to absorb the pending requests. This commit limits the checkpointer requests queue size to 10M items. In addition to preventing the palloc() failure, this change helps to avoid long queue processing time. Also, this commit is for backpathing only. The master branch receives a more invasive yet comprehensive fix for this problem. Discussion: https://postgr.es/m/db4534f83a22a29ab5ee2566ad86ca92%40postgrespro.ru Backpatch-through: 13
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions