]> granicus.if.org Git - postgresql/commit
Rename (new|old)estCommitTs to (new|old)estCommitTsXid
authorJoe Conway <mail@joeconway.com>
Mon, 28 Dec 2015 20:35:16 +0000 (12:35 -0800)
committerJoe Conway <mail@joeconway.com>
Mon, 28 Dec 2015 20:35:16 +0000 (12:35 -0800)
commit282fdfcdc8a8f987c06e839d581b94bf196def8a
treed11bcbd78b0f58d3b82d69da6125531190c4e8db
parent5bf939411ce7a4ae87cee65daca2e4add44b2b46
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/backend/access/rmgrdesc/xlogdesc.c
src/backend/access/transam/commit_ts.c
src/backend/access/transam/xlog.c
src/backend/commands/vacuum.c
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_resetxlog/pg_resetxlog.c
src/include/access/commit_ts.h
src/include/access/transam.h
src/include/catalog/pg_control.h