mirror of
https://github.com/postgres/postgres.git
synced 2026-10-23 13:29:09 +03:00
Fix translation of pg_controldata and pg_resetwal's NextOID output
xgettext does not recognize OID8_FORMAT and therefore extracts an
incomplete message. This switches to PRIu64 instead.
Kyotaro Horiguchi has noticed one problem in pg_controldata, and I have
spotted the extra two ones in pg_resetwal after more review.
Oversight in cb29861646.
Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Author: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/20260914.124645.2220219320843846932.horikyota.ntt@gmail.com
This commit is contained in:
@@ -269,7 +269,7 @@ main(int argc, char *argv[])
|
||||
printf(_("Latest checkpoint's NextXID: %u:%u\n"),
|
||||
EpochFromFullTransactionId(ControlFile->checkPointCopy.nextXid),
|
||||
XidFromFullTransactionId(ControlFile->checkPointCopy.nextXid));
|
||||
printf(_("Latest checkpoint's NextOID: " OID8_FORMAT "\n"),
|
||||
printf(_("Latest checkpoint's NextOID: %" PRIu64 "\n"),
|
||||
ControlFile->checkPointCopy.nextOid);
|
||||
printf(_("Latest checkpoint's NextMultiXactId: %u\n"),
|
||||
ControlFile->checkPointCopy.nextMulti);
|
||||
|
||||
@@ -775,7 +775,7 @@ PrintControlValues(bool guessed)
|
||||
printf(_("Latest checkpoint's NextXID: %u:%u\n"),
|
||||
EpochFromFullTransactionId(ControlFile.checkPointCopy.nextXid),
|
||||
XidFromFullTransactionId(ControlFile.checkPointCopy.nextXid));
|
||||
printf(_("Latest checkpoint's NextOID: " OID8_FORMAT "\n"),
|
||||
printf(_("Latest checkpoint's NextOID: %" PRIu64 "\n"),
|
||||
ControlFile.checkPointCopy.nextOid);
|
||||
printf(_("Latest checkpoint's NextMultiXactId: %u\n"),
|
||||
ControlFile.checkPointCopy.nextMulti);
|
||||
@@ -861,7 +861,7 @@ PrintNewControlValues(void)
|
||||
|
||||
if (next_oid_given)
|
||||
{
|
||||
printf(_("NextOID: " OID8_FORMAT "\n"),
|
||||
printf(_("NextOID: %" PRIu64 "\n"),
|
||||
ControlFile.checkPointCopy.nextOid);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user