Fix the computation of max dead tuples during the vacuum.
authorAmit Kapila <akapila@postgresql.org>
Wed, 22 Jan 2020 02:13:51 +0000 (07:43 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 22 Jan 2020 02:13:51 +0000 (07:43 +0530)
commit79a3efb84d09b1e98ad7bb2756fa570efb578d1d
tree930eae193359d19d1a651c98ed6a159c0c4a4feb
parenta904abe2e284f570168839e52e18ef0b7f26179d
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
src/backend/access/heap/vacuumlazy.c