| From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Consolidate VACUUM xid cutoff logic. |
| Date: | 2022-02-12 02:26:44 |
| Message-ID: | E1nIi7Y-0001cl-9f@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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 <pg(at)bowt(dot)ie>
Discussion: https://postgr.es/m/CAH2-WzkymFbz6D_vL+jmqSn_5q1wsFvFrE+37yLgL_Rkfd6Gzg@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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2022-02-12 04:07:04 | pgsql: Revert "Add TAP test to automate the equivalent of check_guc" |
| Previous Message | Peter Geoghegan | 2022-02-12 00:49:57 | pgsql: Add VACUUM instrumentation for scanned pages, relfrozenxid. |