mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user