diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-31 11:12:26 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-31 11:12:26 -0400 |
commit | 3dfaea4727fb3d98e28f4cb9d707c33e2bdbfa7d (patch) | |
tree | f9bc7bc89c6d76037db0bd54f8a327db03ca175f /src/backend/utils/adt/xid.c | |
parent | 56901beb806bde7af419ad67f49086aaca4fc8df (diff) | |
download | postgresql-3dfaea4727fb3d98e28f4cb9d707c33e2bdbfa7d.tar.gz postgresql-3dfaea4727fb3d98e28f4cb9d707c33e2bdbfa7d.zip |
Revert back-branch changes in behavior of age(xid).
Per discussion, it does not seem like a good idea to change the behavior of
age(xid) in a minor release, even though the old definition causes the
function to fail on hot standby slaves. Therefore, revert commit
5829387381d2e4edf84652bb5a712f6185860670 and follow-on commits in the back
branches only.
Diffstat (limited to 'src/backend/utils/adt/xid.c')
-rw-r--r-- | src/backend/utils/adt/xid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/xid.c b/src/backend/utils/adt/xid.c index 0613bd09286..76d29ff2a37 100644 --- a/src/backend/utils/adt/xid.c +++ b/src/backend/utils/adt/xid.c @@ -87,13 +87,13 @@ xideq(PG_FUNCTION_ARGS) } /* - * xid_age - compute age of an XID (relative to latest stable xid) + * xid_age - compute age of an XID (relative to current xact) */ Datum xid_age(PG_FUNCTION_ARGS) { TransactionId xid = PG_GETARG_TRANSACTIONID(0); - TransactionId now = GetStableLatestTransactionId(); + TransactionId now = GetTopTransactionId(); /* Permanent XIDs are always infinitely old */ if (!TransactionIdIsNormal(xid)) |