]> granicus.if.org Git - postgresql/commitdiff
Improve comment for GetStableLatestTransactionId().
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 31 May 2012 15:20:02 +0000 (11:20 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 31 May 2012 15:20:02 +0000 (11:20 -0400)
src/backend/access/transam/xact.c

index 5ae46dee9b5168afc5d2e6382d10fb50a878a134..49c14cb64c02a39cac4e6d4dfbcdeb015bcc2a53 100644 (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)