Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format
Date
Msg-id 56827A0A.2050705@iki.fi
Whole thread Raw
In response to pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format  (Joe Conway <mail@joeconway.com>)
Responses Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format  (José Luis Tallón <jltallon@adv-solutions.net>)
List 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




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: commit 5c45d2f need to be back-patch on branch 9.2 & before
Next
From: Andres Freund
Date:
Subject: Re: Some 9.5beta2 backend processes not terminating properly?