pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Consolidate VACUUM xid cutoff logic.
Date: Sat, 12 Feb 2022 02:26:44 +0000
Message-ID: <E1nIi7Y-0001cl-9f@gemulon.postgresql.org> (raw)

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

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



Message-ID: <E1nIi7Y-0001cl-9f@gemulon.postgresql.org>
Permalink:  ../E1nIi7Y-0001cl-9f@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nIi7Y-0001cl-9f@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: pg@bowt.ie
  Subject: Re: pgsql: Consolidate VACUUM xid cutoff logic.
  In-Reply-To: <E1nIi7Y-0001cl-9f@gemulon.postgresql.org>
  References: <E1nIi7Y-0001cl-9f@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox