[bug fix] Fix the size calculation for shmem TOC

From: "tsunakawa(dot)takay(at)fujitsu(dot)com" <tsunakawa(dot)takay(at)fujitsu(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: [bug fix] Fix the size calculation for shmem TOC
Date: 2021-01-14 08:47:12
Message-ID: TYAPR01MB2990BFB73170E2C4921E2C4DFEA80@TYAPR01MB2990.jpnprd01.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Regards
Takayuki Tsunakawa

Attachment Content-Type Size
0001-Fix-size-calculation-for-shmem-TOC.patch application/octet-stream 893 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2021-01-14 08:58:53 Re: POC: postgres_fdw insert batching
Previous Message Craig Ringer 2021-01-14 08:39:12 Re: [PATCH] Identify LWLocks in tracepoints