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

From Fujii Masao
Subject Re: [bug fix] Fix the size calculation for shmem TOC
Date
Msg-id 19754354-737d-ac12-94af-9f23234dd5ef@oss.nttdata.com
Whole thread Raw
In response to [bug fix] Fix the size calculation for shmem TOC  ("tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>)
Responses Re: [bug fix] Fix the size calculation for shmem TOC  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers

On 2021/01/14 17:47, tsunakawa.takay@fujitsu.com wrote:
> 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.
 
Thanks for the report and patch! The patch looks good to me.

Regards,

-- 
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION



pgsql-hackers by date:

Previous
From: "Tang, Haiying"
Date:
Subject: RE: Parallel INSERT (INTO ... SELECT ...)
Next
From: Erik Rijkers
Date:
Subject: Re: proposal: schema variables