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/commit_ts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/include/access/commit_ts.h') diff --git a/src/include/access/commit_ts.h b/src/include/access/commit_ts.h index 425f25870fd..b11715a2b95 100644 --- a/src/include/access/commit_ts.h +++ b/src/include/access/commit_ts.h @@ -43,7 +43,7 @@ extern void ExtendCommitTs(TransactionId newestXact); extern void TruncateCommitTs(TransactionId oldestXact); extern void SetCommitTsLimit(TransactionId oldestXact, TransactionId newestXact); -extern void AdvanceOldestCommitTs(TransactionId oldestXact); +extern void AdvanceOldestCommitTsXid(TransactionId oldestXact); /* XLOG stuff */ #define COMMIT_TS_ZEROPAGE 0x00 -- cgit v1.2.3