pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix the computation of max dead tuples during the vacuum.
Date: Wed, 22 Jan 2020 02:15:50 +0000
Message-ID: <E1iu5Yc-0000CH-NA@gemulon.postgresql.org> (raw)

Fix the computation of max dead tuples during the vacuum.

In commit 40d964ec99, we changed the way memory is allocated for dead
tuples but forgot to update the place where we compute the maximum
number of dead tuples.  This could lead to invalid memory requests.

Reported-by: Andres Freund
Diagnosed-by: Andres Freund
Author: Masahiko Sawada
Reviewed-by: Amit Kapila and Dilip Kumar
Discussion: https://postgr.es/m/20200121060020.e3cr7s7fj5rw4lok@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/79a3efb84d09b1e98ad7bb2756fa570efb578d1d

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)



Message-ID: <E1iu5Yc-0000CH-NA@gemulon.postgresql.org>
Permalink:  ../E1iu5Yc-0000CH-NA@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iu5Yc-0000CH-NA@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: akapila@postgresql.org
  Subject: Re: pgsql: Fix the computation of max dead tuples during the vacuum.
  In-Reply-To: <E1iu5Yc-0000CH-NA@gemulon.postgresql.org>
  References: <E1iu5Yc-0000CH-NA@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