pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix calculation of how much shared memory is required to store a
Date: Fri, 15 Jan 2021 03:45:14 +0000
Message-ID: <E1l0G30-0003bP-26@gemulon.postgresql.org> (raw)

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/TYAPR01MB2990BFB73170E2C4921E2C4DFEA80@TYAPR01MB2990.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2ad78a87f018260d4474eee63187e1cc73c9b976

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



view thread (4+ messages)  latest in thread

Message-ID: <E1l0G30-0003bP-26@gemulon.postgresql.org>
Permalink:  ../E1l0G30-0003bP-26@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1l0G30-0003bP-26@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Fix calculation of how much shared memory is required to store a
  In-Reply-To: <E1l0G30-0003bP-26@gemulon.postgresql.org>
  References: <E1l0G30-0003bP-26@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox