pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Change XID and mxact limits to warn at 40M and stop at 3M.
Date: Sat, 01 Aug 2020 22:31:40 +0000
Message-ID: <E1k202W-0008Dq-3z@gemulon.postgresql.org> (raw)

Change XID and mxact limits to warn at 40M and stop at 3M.

We have edge-case bugs when assigning values in the last few dozen pages
before the wrap limit.  We may introduce similar bugs in the future.  At
default BLCKSZ, this makes such bugs unreachable outside of single-user
mode.  Also, when VACUUM began to consume mxacts, multiStopLimit did not
change to compensate.

pg_upgrade may fail on a cluster that was already printing "must be
vacuumed" warnings.  Follow the warning's instructions to clear the
warning, then run pg_upgrade again.  One can still, peacefully consume
98% of XIDs or mxacts, so DBAs need not change routine VACUUM settings.

Discussion: https://postgr.es/m/20200621083513.GA3074645@rfd.leadboat.com

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/maintenance.sgml          |  8 ++++----
src/backend/access/transam/multixact.c | 24 ++++++++++--------------
src/backend/access/transam/varsup.c    | 27 +++++++++++++++------------
3 files changed, 29 insertions(+), 30 deletions(-)



Message-ID: <E1k202W-0008Dq-3z@gemulon.postgresql.org>
Permalink:  ../E1k202W-0008Dq-3z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k202W-0008Dq-3z@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: noah@leadboat.com
  Subject: Re: pgsql: Change XID and mxact limits to warn at 40M and stop at 3M.
  In-Reply-To: <E1k202W-0008Dq-3z@gemulon.postgresql.org>
  References: <E1k202W-0008Dq-3z@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