pgsql: Refactor code dedicated to index vacuuming in vacuumlazy.c

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor code dedicated to index vacuuming in vacuumlazy.c
Date: 2019-12-26 08:04:17
Message-ID: E1ikO81-0004Pn-Ps@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor code dedicated to index vacuuming in vacuumlazy.c

The part in charge of doing the vacuum on all the indexes of a relation
was duplicated, with the same handling for progress reporting done.
While on it, update the progress reporting for heap vacuuming in the
subroutine doing the actual work, keeping the status update local. This
way, any future caller of lazy_vacuum_heap() does not have to worry
about doing any progress reporting update.

Author: Justin Pryzby, Michael Paquier
Discussion: https://postgr.es/m/20191120210600.GC30362@telsasoft.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1ab41a3c8edcf5d7751e61d6ab83bf43b494668b

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 96 ++++++++++++++++--------------------
1 file changed, 43 insertions(+), 53 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-12-26 13:27:15 pgsql: Fix some comments related to logical repslot advancing
Previous Message Fujii Masao 2019-12-26 06:11:09 pgsql: Add note about how each partition's default value is treated, in