]> granicus.if.org Git - postgresql/commit
Rename (new|old)estCommitTs to (new|old)estCommitTsXid
authorJoe Conway <mail@joeconway.com>
Mon, 28 Dec 2015 20:34:11 +0000 (12:34 -0800)
committerJoe Conway <mail@joeconway.com>
Mon, 28 Dec 2015 20:34:11 +0000 (12:34 -0800)
commit241448b23adf3432988f2b4012ff90a338b4d0bf
treec1a95b2e2d7b7fb86f29453f3444d267a8a544eb
parent81ee726d87ec67c4f2846110c99f72e8a20dcd07
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