Skip to content

Commit 18d938d

Browse files
committed
Make pg_controldata report newest XID with valid commit timestamp
Previously pg_controldata didn't report newestCommitTs and this was an oversight in commit 73c986a. Also this patch changes pg_resetxlog so that it uses the same sentences as pg_controldata does, regarding oldestCommitTs and newestCommitTs, for the sake of consistency. Back-patch to 9.5 where track_commit_timestamp was added. Euler Taveira
1 parent 020235a commit 18d938d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/bin/pg_controldata/pg_controldata.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ main(int argc, char *argv[])
273273
ControlFile.checkPointCopy.oldestMultiDB);
274274
printf(_("Latest checkpoint's oldestCommitTs: %u\n"),
275275
ControlFile.checkPointCopy.oldestCommitTs);
276+
printf(_("Latest checkpoint's newestCommitTs: %u\n"),
277+
ControlFile.checkPointCopy.newestCommitTs);
276278
printf(_("Time of latest checkpoint: %s\n"),
277279
ckpttime_str);
278280
printf(_("Fake LSN counter for unlogged rels: %X/%X\n"),

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,9 +665,9 @@ PrintControlValues(bool guessed)
665665
ControlFile.checkPointCopy.oldestMulti);
666666
printf(_("Latest checkpoint's oldestMulti's DB: %u\n"),
667667
ControlFile.checkPointCopy.oldestMultiDB);
668-
printf(_("Latest checkpoint's oldest CommitTs: %u\n"),
668+
printf(_("Latest checkpoint's oldestCommitTs: %u\n"),
669669
ControlFile.checkPointCopy.oldestCommitTs);
670-
printf(_("Latest checkpoint's newest CommitTs: %u\n"),
670+
printf(_("Latest checkpoint's newestCommitTs: %u\n"),
671671
ControlFile.checkPointCopy.newestCommitTs);
672672
printf(_("Maximum data alignment: %u\n"),
673673
ControlFile.maxAlign);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy