Re: 64 bit numbers vs format strings

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Thomas Munro <thomas.munro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-03-17T07:09:25Z
Lists: pgsql-hackers

Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Cast result of i64abs() back to int64

Peter Eisentraut <peter@eisentraut.org> writes:
> This is not really possible.  The <PRIxxx> behavior is baked deeply into 
> the gettext code.  (Also note that you don't only need support in 
> xgettext, which is part of our build system, but also in the runtime 
> library, which we don't control.)

Hmm, I find that comment fairly scary.  How do we know that the
runtime library actually gets this right on every supported platform?
It's surely not because we test it, because we do not.

			regards, tom lane