pgsql: Fix the computation of max dead tuples during the vacuum. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Fix the computation of max dead tuples during the vacuum.
Date
Msg-id E1iu5Yc-0000CH-NA@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix concurrent indexing operations with temporary tables
Next
From: Fujii Masao
Date:
Subject: pgsql: Add GUC ignore_invalid_pages.