Fix calculation of how much shared memory is required to store a TOC.
Fujii Masao <fujii@postgresql.org>
Fix calculation of how much shared memory is required to store a TOC. Commit ac883ac453 refactored shm_toc_estimate() but changed its calculation of shared memory size for TOC incorrectly. Previously this could cause too large memory to be allocated. Back-patch to v11 where the bug was introduced. Author: Takayuki Tsunakawa Discussion: https://postgr.es/m/TYAPR01MB2990BFB73170E2C4921E2C4DFEA80@TYAPR01MB2990.jpnprd01.prod.outlook.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/ipc/shm_toc.c | modified | +2 −2 |
Discussion
- [bug fix] Fix the size calculation for shmem TOC 3 messages · 2021-01-14 → 2021-01-15