| From: | Amit Kapila <akapila(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix the computation of max dead tuples during the vacuum. |
| Date: | 2020-01-22 02:15:50 |
| Message-ID: | E1iu5Yc-0000CH-NA@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2020-01-22 02:57:42 | pgsql: Add GUC ignore_invalid_pages. |
| Previous Message | Michael Paquier | 2020-01-22 00:50:50 | pgsql: Fix concurrent indexing operations with temporary tables |