From 241448b23adf3432988f2b4012ff90a338b4d0bf Mon Sep 17 00:00:00 2001 From: Joe Conway Date: Mon, 28 Dec 2015 12:34:11 -0800 Subject: 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. --- src/include/access/transam.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/access/transam.h') 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. -- cgit v1.2.3