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

Поиск
Список
Период
Сортировка
От José Luis Tallón
Тема Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format
Дата
Msg-id 56829608.1030408@adv-solutions.net
обсуждение исходный текст
Ответ на Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: pg_controldata/pg_resetxlog "Latest checkpoint's NextXID" format  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12/29/2015 01:18 PM, Heikki Linnakangas wrote:
> 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.

But Joe has a point here.... Others could also be confused if he doubted 
about this.

"Latest checkpoint's NextXID:          %u:%u\n", maybe ??    (slash becomes colon)

Worst part: fuzzies the translations unnecesarily

    / J.L.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Making tab-complete.c easier to maintain
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Additional role attributes && superuser review