Consolidate VACUUM xid cutoff logic.

Push the logic for determining whether or not a VACUUM operation will be
aggressive down into vacuum_set_xid_limits().  This makes the function's
signature significantly simpler, and seems clearer overall.

Author: Peter Geoghegan <[email protected]>
Discussion: 
https://postgr.es/m/cah2-wzkymfbz6d_vl+jmqsn_5q1wsfvfre+37ylgl_rkfd6...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/efa4a9462a072b4cd6459058df274dd23022d0e2

Modified Files
--------------
src/backend/access/heap/vacuumlazy.c |  34 +++++----
src/backend/commands/cluster.c       |   3 +-
src/backend/commands/vacuum.c        | 131 ++++++++++++++++-------------------
src/include/commands/vacuum.h        |   6 +-
4 files changed, 79 insertions(+), 95 deletions(-)

Reply via email to