Consolidate VACUUM xid cutoff logic.
Peter Geoghegan <pg@bowt.ie>
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@bowt.ie> Discussion: https://postgr.es/m/CAH2-WzkymFbz6D_vL+jmqSn_5q1wsFvFrE+37yLgL_Rkfd6Gzg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/vacuumlazy.c | modified | +16 −18 |
| src/backend/commands/cluster.c | modified | +1 −2 |
| src/backend/commands/vacuum.c | modified | +60 −71 |
| src/include/commands/vacuum.h | modified | +2 −4 |
Discussion
- Removing more vacuumlazy.c special cases, relfrozenxid optimizations 139 messages · 2021-11-22 → 2022-04-15