[bug fix] Fix the size calculation for shmem TOC - Mailing list pgsql-hackers

From tsunakawa.takay@fujitsu.com
Subject [bug fix] Fix the size calculation for shmem TOC
Date
Msg-id TYAPR01MB2990BFB73170E2C4921E2C4DFEA80@TYAPR01MB2990.jpnprd01.prod.outlook.com
Whole thread Raw
Responses Re: [bug fix] Fix the size calculation for shmem TOC  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers
Hello,


The attached patch fixes a trivial mistake in the calculation of shmem TOC.  The original code allocates unduly large
memorybecause it adds the result of add_size() to its left argument. 


Regards
Takayuki Tsunakawa


Attachment

pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: [PATCH] Identify LWLocks in tracepoints
Next
From: Amit Langote
Date:
Subject: Re: POC: postgres_fdw insert batching