pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jacktby@gmail.com <jacktby@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: what's hsitoric MVCC Snapshot?
Date: Sun, 5 Mar 2023 22:49:13 +0800
Message-ID: <202303052249108283258@gmail.com> (raw)

Here are the comments in src/include/utils/snapshot.h.
        /*
* For normal MVCC snapshot this contains the all xact IDs that are in
* progress, unless the snapshot was taken during recovery in which case
* it's empty. For historic MVCC snapshots, the meaning is inverted, i.e.
* it contains *committed* transactions between xmin and xmax.
*
* note: all ids in xip[] satisfy xmin <= xip[i] < xmax
*/
TransactionId *xip;
I can't understand the historic MVCC snapshots? can you give me a scenario
to describe this?


jacktby@gmail.com


view thread (3+ messages)  latest in thread

Message-ID: <202303052249108283258@gmail.com>
Permalink:  ../202303052249108283258@gmail.com/
Also on:    postgresql.org/message-id/202303052249108283258@gmail.com

 · 

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-general@postgresql.org
  Cc: jacktby@gmail.com
  Subject: Re: what's hsitoric MVCC Snapshot?
  In-Reply-To: <202303052249108283258@gmail.com>
  References: <202303052249108283258@gmail.com>

* 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