Re: 64 bit numbers vs format strings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: 64 bit numbers vs format strings
Date
Msg-id 3d0a9c36-6158-4736-9793-c4e0c7c78807@eisentraut.org
Whole thread Raw
Responses Re: 64 bit numbers vs format strings
List pgsql-hackers
On 05.12.24 23:18, Thomas Munro wrote:
> Having learned some things about gettext based on clues[1] from Peter
> E, I decided to see what it would take to expunge all (long long) and
> similar casts now that we're using the standard types with system
> support.
> 
> The short version is tha given uint64 x:
> 
>      Old: errmsg("hello %llu", (unsigned long long) x)
>      New: errmsg("hello %" PRIu64, x)

I have committed the subset of this patch for pg_checksums.c so that the 
translators and whoever else might be affected can try this out at small 
scale.  (I don't expect any particular problems.)  Then we can move on 
to the rest in a few weeks, I think.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations
Next
From: Srinath Reddy
Date:
Subject: Re: making EXPLAIN extensible