Re: [bug fix] Fix the size calculation for shmem TOC

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: "tsunakawa(dot)takay(at)fujitsu(dot)com" <tsunakawa(dot)takay(at)fujitsu(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: [bug fix] Fix the size calculation for shmem TOC
Date: 2021-01-14 09:15:44
Message-ID: 19754354-737d-ac12-94af-9f23234dd5ef@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2021/01/14 17:47, tsunakawa(dot)takay(at)fujitsu(dot)com wrote:
> Hello,
>
>
> The attached patch fixes a trivial mistake in the calculation of shmem TOC. The original code allocates unduly large memory because 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Erik Rijkers 2021-01-14 09:24:27 Re: proposal: schema variables
Previous Message Tang, Haiying 2021-01-14 09:07:09 RE: Parallel INSERT (INTO ... SELECT ...)