Improve comment for GetStableLatestTransactionId().

This commit is contained in:
Tom Lane 2012-05-31 11:20:02 -04:00
parent a2b516dab9
commit a04dc87db1
1 changed files with 4 additions and 2 deletions

View File

@ -393,8 +393,10 @@ GetCurrentTransactionIdIfAny(void)
/*
* GetStableLatestTransactionId
*
* Get the XID once and then return same value for rest of transaction.
* Acts as a useful reference point for maintenance tasks.
* Get the transaction's XID if it has one, else read the next-to-be-assigned
* XID. Once we have a value, return that same value for the remainder of the
* current transaction. This is meant to provide the reference point for the
* age(xid) function, but might be useful for other maintenance tasks as well.
*/
TransactionId
GetStableLatestTransactionId(void)