| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: 64 bit numbers vs format strings |
| Date: | 2025-03-02 17:21:39 |
| Message-ID: | 3d0a9c36-6158-4736-9793-c4e0c7c78807@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Srinath Reddy | 2025-03-02 17:54:01 | Re: making EXPLAIN extensible |
| Previous Message | Tom Lane | 2025-03-02 16:27:20 | Re: Make COPY format extendable: Extract COPY TO format implementations |