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/tyapr01mb2990bfb73170e2c4921e2c4dfe...@tyapr01mb2990.jpnprd01.prod.outlook.com

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/19a1d768531a75cf729dc294322c6a4460f67ed9

Modified Files
--------------
src/backend/storage/ipc/shm_toc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Reply via email to