diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-31 11:20:02 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-31 11:20:02 -0400 |
| commit | a04dc87db140ddfb86008f424b8c4b2b6eeaa4cf (patch) | |
| tree | 4cb7693646a1ca6c66a2978503145342627a0ec4 | |
| parent | a2b516dab9b90007c1b65988d91222c4582adea8 (diff) | |
| download | postgresql-a04dc87db140ddfb86008f424b8c4b2b6eeaa4cf.tar.gz | |
Improve comment for GetStableLatestTransactionId().
| -rw-r--r-- | src/backend/access/transam/xact.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 5ae46dee9b..49c14cb64c 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -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) |
