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: Track the oldest XID that can be safely looked up in CLOG.
Date: Thu, 23 Mar 2017 18:29:33 +0000
Message-ID: <E1cr7UL-0002Ly-BC@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Track the oldest XID that can be safely looked up in CLOG.

This provides infrastructure for looking up arbitrary, user-supplied
XIDs without a risk of scary-looking failures from within the clog
module.  Normally, the oldest XID that can be safely looked up in CLOG
is the same as the oldest XID that can reused without causing
wraparound, and the latter is already tracked.  However, while
truncation is in progress, the values are different, so we must
keep track of them separately.

Craig Ringer, reviewed by Simon Riggs and by me.

Discussion: http://postgr.es/m/CAMsr+YHQiWNEi0daCTboS40T+V5s_+dst3PYv_8v2wNVH+Xx4g@mail.gmail.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ea42cc18c35381f639d45628d792e790ff39e271

Modified Files
--------------
doc/src/sgml/monitoring.sgml             |  4 +++
src/backend/access/rmgrdesc/clogdesc.c   | 12 +++++++--
src/backend/access/transam/clog.c        | 46 +++++++++++++++++++++++++-------
src/backend/access/transam/transam.c     |  4 +--
src/backend/access/transam/varsup.c      | 23 +++++++++++++++-
src/backend/access/transam/xlog.c        | 11 ++++++++
src/backend/commands/vacuum.c            |  2 +-
src/backend/storage/lmgr/lwlocknames.txt |  1 +
src/include/access/clog.h                |  8 +++++-
src/include/access/transam.h             |  7 +++++
src/include/access/xlog_internal.h       |  2 +-
11 files changed, 102 insertions(+), 18 deletions(-)


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


Message-ID: <E1cr7UL-0002Ly-BC@gemulon.postgresql.org>
Permalink:  ../E1cr7UL-0002Ly-BC@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cr7UL-0002Ly-BC@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: Track the oldest XID that can be safely looked up in CLOG.
  In-Reply-To: <E1cr7UL-0002Ly-BC@gemulon.postgresql.org>
  References: <E1cr7UL-0002Ly-BC@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