]> granicus.if.org Git - postgresql/commit
Add a txid_status function.
authorRobert Haas <rhaas@postgresql.org>
Fri, 24 Mar 2017 16:00:53 +0000 (12:00 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 24 Mar 2017 16:00:53 +0000 (12:00 -0400)
commit857ee8e391ff6654ef9dcc5dd8b658d7709d0a3c
tree1d0f54ef032aa0a90bcda70e86ee3850167462ad
parent42b4b0b2413b9b472aaf2112a3bbfd80a6ab4dc5
Add a txid_status function.

If your connection to the database server is lost while a COMMIT is
in progress, it may be difficult to figure out whether the COMMIT was
successful or not.  This function will tell you, provided that you
don't wait too long to ask.  It may be useful in other situations,
too.

Craig Ringer, reviewed by Simon Riggs and by me

Discussion: http://postgr.es/m/CAMsr+YHQiWNEi0daCTboS40T+V5s_+dst3PYv_8v2wNVH+Xx4g@mail.gmail.com
doc/src/sgml/func.sgml
src/backend/utils/adt/txid.c
src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/recovery/t/011_crash_recovery.pl [new file with mode: 0644]
src/test/regress/expected/txid.out
src/test/regress/sql/txid.sql