postgresql/src/test/modules/commit_ts
Alvaro Herrera 7816d13563 Fix commit_ts for FrozenXid and BootstrapXid
Previously, requesting commit timestamp for transactions
FrozenTransactionId and BootstrapTransactionId resulted in an error.
But since those values can validly appear in committed tuples' Xmin,
this behavior is unhelpful and error prone: each caller would have to
special-case those values before requesting timestamp data for an Xid.
We already have a perfectly good interface for returning "the Xid you
requested is too old for us to have commit TS data for it", so let's use
that instead.

Backpatch to 9.5, where commit timestamps appeared.

Author: Craig Ringer
Discussion: https://www.postgresql.org/message-id/CAMsr+YFM5Q=+ry3mKvWEqRTxrB0iU3qUSRnS28nz6FJYtBwhJg@mail.gmail.com
2016-11-24 15:39:55 -03:00
..
expected Fix commit_ts for FrozenXid and BootstrapXid 2016-11-24 15:39:55 -03:00
sql Fix commit_ts test suite for systems with coarse timestamp granularity. 2014-12-15 20:56:09 -05:00
.gitignore Keep track of transaction commit timestamps 2014-12-03 11:53:02 -03:00
commit_ts.conf Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Keep track of transaction commit timestamps 2014-12-03 11:53:02 -03:00