agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Replace OID8_FORMAT with more portable PRIu64
Date: Mon, 28 Sep 2026 03:35:54 +0000
Message-ID: <E1xB29i-00000001Y0l-0ndY@gemulon.postgresql.org> (raw)

Replace OID8_FORMAT with more portable PRIu64

The OID8_FORMAT marker could break translated messages, as proven by
ceae3099da7b, so let's remove it while we can instead of encouraging its
use.

An alternative solution that would allow OID8_FORMAT is to save the
result into an intermediate string, itself used in the translated
strings, but per discussion this is not an appealing long-term approach.

Note that this commit partially reworks 072d4c424057.

Per discussion with Peter Eisentraut, Álvaro Herrera and Tom Lane.

Discussion: https://postgr.es/m/aqeO1OU7uZjhioAq@alvherre.pgsql

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0e0bf0d92851cf1c62d64e9556a9cf4c9ab302f2

Modified Files
--------------
contrib/amcheck/verify_heapam.c                 | 28 ++++++++++++-------------
src/backend/access/heap/heaptoast.c             | 10 ++++-----
src/backend/access/rmgrdesc/xlogdesc.c          |  4 ++--
src/backend/access/transam/varsup.c             |  2 +-
src/backend/access/transam/xlogrecovery.c       |  2 +-
src/backend/replication/logical/reorderbuffer.c |  4 ++--
src/bin/pg_upgrade/pg_upgrade.c                 |  2 +-
7 files changed, 26 insertions(+), 26 deletions(-)



Message-ID: <E1xB29i-00000001Y0l-0ndY@gemulon.postgresql.org>
Permalink:  ../E1xB29i-00000001Y0l-0ndY@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xB29i-00000001Y0l-0ndY@gemulon.postgresql.org

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Replace OID8_FORMAT with more portable PRIu64
  In-Reply-To: <E1xB29i-00000001Y0l-0ndY@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox