Add new 'old_snapshot' contrib module.
authorRobert Haas <rhaas@postgresql.org>
Thu, 24 Sep 2020 17:55:47 +0000 (13:55 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 24 Sep 2020 17:55:47 +0000 (13:55 -0400)
commitaecf5ee2bb36c597d3c6142e367e38d67816c777
tree6ae8f565726d6dd2f9164725c6891aecb906e573
parentf5ea92e8d620a1260d3427b92fa350bbf36594a2
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
contrib/Makefile
contrib/old_snapshot/Makefile [new file with mode: 0644]
contrib/old_snapshot/old_snapshot--1.0.sql [new file with mode: 0644]
contrib/old_snapshot/old_snapshot.control [new file with mode: 0644]
contrib/old_snapshot/time_mapping.c [new file with mode: 0644]
doc/src/sgml/contrib.sgml
doc/src/sgml/filelist.sgml
doc/src/sgml/oldsnapshot.sgml [new file with mode: 0644]