From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove unneeded old_rel_pages VACUUM state field.
Date: Tue, 31 Aug 2021 22:00:48 +0000
Message-ID: <E1mLBoG-0005rZ-Sv@gemulon.postgresql.org> (raw)
Remove unneeded old_rel_pages VACUUM state field.
The field hasn't been used since commit 3d351d91, which redefined
pg_class.reltuples to be -1 before the first VACUUM or ANALYZE.
Also rename a local variable of the same name ("old_rel_pages"). This is
used by relation truncation to represent the original relation size at
the start of the ongoing VACUUM operation. Rename it to orig_rel_pages,
since that's a lot clearer. (This name matches similar nearby code.)
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/47029f775adf83796fecb5871ce52488996a7969
Modified Files
--------------
src/backend/access/heap/vacuumlazy.c | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 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: pg@bowt.ie
Subject: Re: pgsql: Remove unneeded old_rel_pages VACUUM state field.
In-Reply-To: <E1mLBoG-0005rZ-Sv@gemulon.postgresql.org>
References: <E1mLBoG-0005rZ-Sv@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