Adjust VACUUM's removable cutoff log message.
authorPeter Geoghegan <pg@bowt.ie>
Fri, 15 Apr 2022 20:21:43 +0000 (13:21 -0700)
committerPeter Geoghegan <pg@bowt.ie>
Fri, 15 Apr 2022 20:21:43 +0000 (13:21 -0700)
commit357c8455e64915f2d8f50ca5853eb91b74470d96
treef60469a3f693949e1fae6902cbf70ba1f442a0a1
parent91998539b227dfc6dd091714da7d106f2c95a321
Adjust VACUUM's removable cutoff log message.

The age of OldestXmin (a.k.a. "removable cutoff") when VACUUM ends often
indicates the approximate number of XIDs consumed while VACUUM ran.
However, there is at least one important exception: the cutoff could be
held back by a snapshot that was acquired before our VACUUM even began.
Successive VACUUM operations may even use exactly the same old cutoff in
extreme cases involving long held snapshots.

The log messages that described how removable cutoff aged (which were
added by commit 872770fd) created the impression that we were reporting
on how VACUUM's usable cutoff advanced while VACUUM ran, which was
misleading in these extreme cases.  Fix by using a more general wording.

Per gripe from Tom Lane.

In passing, relocate related instrumentation code for clarity.

Author: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/1643035.1650035653@sss.pgh.pa.us
src/backend/access/heap/vacuumlazy.c