pgsql: Add new 'old_snapshot' contrib module.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add new 'old_snapshot' contrib module.
Date: 2020-09-24 18:24:59
Message-ID: E1kLVvP-0001cZ-SK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add new 'old_snapshot' contrib module.

You can use this to view the contents of the time to XID mapping
which the server maintains when old_snapshot_threshold != -1.
Being able to view that information may be interesting for users,
and it's definitely useful for figuring out whether the mapping
is being maintained correctly. It isn't, so that will need to be
fixed in a subsequent commit.

Patch by me, reviewed by Thomas Munro, Dilip Kumar, Hamid Akhtar.

Discussion: http://postgr.es/m/CA+TgmoY=aqf0zjTD+3dUWYkgMiNDegDLFjo+6ze=Wtpik+3XqA@mail.gmail.com

Branch
------
master

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

Modified Files
--------------
contrib/Makefile | 1 +
contrib/old_snapshot/Makefile | 22 ++++
contrib/old_snapshot/old_snapshot--1.0.sql | 14 +++
contrib/old_snapshot/old_snapshot.control | 5 +
contrib/old_snapshot/time_mapping.c | 159 +++++++++++++++++++++++++++++
doc/src/sgml/contrib.sgml | 1 +
doc/src/sgml/filelist.sgml | 1 +
doc/src/sgml/oldsnapshot.sgml | 33 ++++++
8 files changed, 236 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-09-24 18:58:49 Re: pgsql: Improve the error message for an inappropriate column definition
Previous Message Robert Haas 2020-09-24 17:55:22 pgsql: Expose oldSnapshotControl definition via new header.