summaryrefslogtreecommitdiff
path: root/src/include/access/transam.h
diff options
context:
space:
mode:
authorJoe Conway <mail@joeconway.com>2015-12-28 12:35:16 -0800
committerJoe Conway <mail@joeconway.com>2015-12-28 12:35:16 -0800
commit282fdfcdc8a8f987c06e839d581b94bf196def8a (patch)
treed11bcbd78b0f58d3b82d69da6125531190c4e8db /src/include/access/transam.h
parent5bf939411ce7a4ae87cee65daca2e4add44b2b46 (diff)
Rename (new|old)estCommitTs to (new|old)estCommitTsXid
The variables newestCommitTs and oldestCommitTs sound as if they are timestamps, but in fact they are the transaction Ids that correspond to the newest and oldest timestamps rather than the actual timestamps. Rename these variables to reflect that they are actually xids: to wit newestCommitTsXid and oldestCommitTsXid respectively. Also modify related code in a similar fashion, particularly the user facing output emitted by pg_controldata and pg_resetxlog. Complaint and patch by me, review by Tom Lane and Alvaro Herrera. Backpatch to 9.5 where these variables were first introduced.
Diffstat (limited to 'src/include/access/transam.h')
-rw-r--r--src/include/access/transam.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/access/transam.h b/src/include/access/transam.h
index 96b3facb14d..9ad5761f811 100644
--- a/src/include/access/transam.h
+++ b/src/include/access/transam.h
@@ -126,8 +126,8 @@ typedef struct VariableCacheData
/*
* These fields are protected by CommitTsLock
*/
- TransactionId oldestCommitTs;
- TransactionId newestCommitTs;
+ TransactionId oldestCommitTsXid;
+ TransactionId newestCommitTsXid;
/*
* These fields are protected by ProcArrayLock.