From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor code dedicated to index vacuuming in vacuumlazy.c
Date: Thu, 26 Dec 2019 08:04:17 +0000
Message-ID: <E1ikO81-0004Pn-Ps@gemulon.postgresql.org> (raw)
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(-)
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: michael@paquier.xyz
Subject: Re: pgsql: Refactor code dedicated to index vacuuming in vacuumlazy.c
In-Reply-To: <E1ikO81-0004Pn-Ps@gemulon.postgresql.org>
References: <E1ikO81-0004Pn-Ps@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