diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-21 16:16:31 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-21 16:16:31 +0000 |
| commit | 35af5422f640e74029a167d106604da35ae64c5f (patch) | |
| tree | 88297ff1c3c369c1a2a2063b319518b0db72b4fe /src/bin/pg_controldata | |
| parent | 1054c38069359239d4c1469a1dab543f11706bc2 (diff) | |
| download | postgresql-35af5422f640e74029a167d106604da35ae64c5f.tar.gz | |
Make the server track an 'XID epoch', that is, maintain higher-order bits
of the transaction ID counter. Nothing is done with the epoch except to
store it in checkpoint records, but this provides a foundation with which
add-on code can pretend that XIDs never wrap around. This is a severely
trimmed and rewritten version of the xxid patch submitted by Marko Kreen.
Per discussion, the epoch counter seems the only part of xxid that really
needs to be in the core server.
Diffstat (limited to 'src/bin/pg_controldata')
| -rw-r--r-- | src/bin/pg_controldata/pg_controldata.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/pg_controldata/pg_controldata.c b/src/bin/pg_controldata/pg_controldata.c index e0f3cfd2d9..cbde5357ed 100644 --- a/src/bin/pg_controldata/pg_controldata.c +++ b/src/bin/pg_controldata/pg_controldata.c @@ -6,7 +6,7 @@ * copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001; * licence: BSD * - * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.30 2006/08/07 16:57:56 tgl Exp $ + * $PostgreSQL: pgsql/src/bin/pg_controldata/pg_controldata.c,v 1.31 2006/08/21 16:16:31 tgl Exp $ */ #include "postgres.h" @@ -177,7 +177,8 @@ main(int argc, char *argv[]) ControlFile.checkPointCopy.undo.xrecoff); printf(_("Latest checkpoint's TimeLineID: %u\n"), ControlFile.checkPointCopy.ThisTimeLineID); - printf(_("Latest checkpoint's NextXID: %u\n"), + printf(_("Latest checkpoint's NextXID: %u/%u\n"), + ControlFile.checkPointCopy.nextXidEpoch, ControlFile.checkPointCopy.nextXid); printf(_("Latest checkpoint's NextOID: %u\n"), ControlFile.checkPointCopy.nextOid); |
