Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Joe Conway <mail(at)joeconway(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format
Date: 2015-12-29 12:18:18
Message-ID: 56827A0A.2050705@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 29/12/15 07:14, Joe Conway wrote:
> I wonder why "Latest checkpoint's NextXID" is formated like this:
>
> 8<-------------------------
> printf(_("Latest checkpoint's NextXID: %u/%u\n"),
> ControlFile.checkPointCopy.nextXidEpoch,
> ControlFile.checkPointCopy.nextXid);
> 8<-------------------------
>
> Shouldn't it use "%X/%X", same as e.g. "Prior checkpoint location" and
> all the other XIDs?

No. The "locations" in the output are WAL locations. Those are
customarily printed with %X/%X. But NextXID is a transaction ID, those
are printed in decimal, with %u.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2015-12-29 12:37:02 Re: Some 9.5beta2 backend processes not terminating properly?
Previous Message Andres Freund 2015-12-29 11:42:26 Re: commit 5c45d2f need to be back-patch on branch 9.2 & before