pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Teach autovacuum about multixact member wraparound.
Date: Fri, 08 May 2015 17:00:34 +0000
Message-ID: <E1Yqlda-0008Aw-AU@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Teach autovacuum about multixact member wraparound.

The logic introduced in commit b69bf30b9bfacafc733a9ba77c9587cf54d06c0c
and repaired in commits 669c7d20e6374850593cb430d332e11a3992bbcf and
7be47c56af3d3013955c91c2877c08f2a0e3e6a2 helps to ensure that we don't
overwrite old multixact member information while it is still needed,
but a user who creates many large multixacts can still exhaust the
member space (and thus start getting errors) while autovacuum stands
idly by.

To fix this, progressively ramp down the effective value (but not the
actual contents) of autovacuum_multixact_freeze_max_age as member space
utilization increases.  This makes autovacuum more aggressive and also
reduces the threshold for a manual VACUUM to perform a full-table scan.

This patch leaves unsolved the problem of ensuring that emergency
autovacuums are triggered even when autovacuum=off.  We'll need to fix
that via a separate patch.

Thomas Munro and Robert Haas

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/596fb5aa73e6073bf870a9093941f937921ad4a4

Modified Files
--------------
doc/src/sgml/maintenance.sgml          |    8 ++-
src/backend/access/transam/multixact.c |   88 ++++++++++++++++++++++++++++++++
src/backend/commands/vacuum.c          |   16 ++++--
src/backend/postmaster/autovacuum.c    |   28 +++++++---
src/include/access/multixact.h         |    1 +
5 files changed, 130 insertions(+), 11 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


view thread (5+ messages)  latest in thread

Message-ID: <E1Yqlda-0008Aw-AU@gemulon.postgresql.org>
Permalink:  ../E1Yqlda-0008Aw-AU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1Yqlda-0008Aw-AU@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: rhaas@postgresql.org
  Subject: Re: pgsql: Teach autovacuum about multixact member wraparound.
  In-Reply-To: <E1Yqlda-0008Aw-AU@gemulon.postgresql.org>
  References: <E1Yqlda-0008Aw-AU@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