pgsql: Remove unneeded old_rel_pages VACUUM state field.

From: Peter Geoghegan <pg(at)bowt(dot)ie>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Remove unneeded old_rel_pages VACUUM state field.
Date: 2021-08-31 22:00:48
Message-ID: E1mLBoG-0005rZ-Sv@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2021-08-31 23:13:33 pgsql: Don't print extra parens around expressions in extended stats
Previous Message Peter Geoghegan 2021-08-31 20:01:04 pgsql: Add historic commit to git-blame-ignore-revs file.