pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Track latest completed xid as a FullTransactionId.
Date: Wed, 12 Aug 2020 00:41:54 +0000
Message-ID: <E1k5eq2-0000RM-Nr@gemulon.postgresql.org> (raw)

Track latest completed xid as a FullTransactionId.

The reason for doing so is that a subsequent commit will need that to
avoid wraparound issues. As the subsequent change is large this was
split out for easier review.

The reason this is not a perfect straight-forward change is that we do
not want track 64bit xids in the procarray or the WAL. Therefore we
need to advance lastestCompletedXid in relation to 32 bit xids. The
code for that is now centralized in MaintainLatestCompletedXid*.

Author: Andres Freund
Reviewed-By: Thomas Munro, Robert Haas, David Rowley
Discussion: https://postgr.es/m/20200301083601.ews6hz5dduc3w2se@alap3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3bd7f9969a240827bc2effa399170b7565238fd2

Modified Files
--------------
src/backend/access/transam/varsup.c |  50 ++++++++++++++
src/backend/access/transam/xlog.c   |   4 +-
src/backend/storage/ipc/procarray.c | 129 +++++++++++++++++++++++++++++-------
src/include/access/transam.h        |  37 ++++++++++-
4 files changed, 191 insertions(+), 29 deletions(-)



Message-ID: <E1k5eq2-0000RM-Nr@gemulon.postgresql.org>
Permalink:  ../E1k5eq2-0000RM-Nr@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k5eq2-0000RM-Nr@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: andres@anarazel.de
  Subject: Re: pgsql: Track latest completed xid as a FullTransactionId.
  In-Reply-To: <E1k5eq2-0000RM-Nr@gemulon.postgresql.org>
  References: <E1k5eq2-0000RM-Nr@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