pgsql: Add new 'old_snapshot' contrib module. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add new 'old_snapshot' contrib module.
Date
Msg-id E1kLVvP-0001cZ-SK@gemulon.postgresql.org
Whole thread Raw
List 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(+)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Expose oldSnapshotControl definition via new header.
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Improve the error message for an inappropriate column definition