Remove unnecessary casts in printf format arguments
Peter Eisentraut <peter@eisentraut.org>
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-12-04T12:19:07Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-unnecessary-casts-in-printf-format-arguments-.patch (text/plain) patch 0001
- 0002-Clean-up-int64-related-format-strings.patch (text/plain) patch 0002
- 0003-Remove-useless-casts-in-format-arguments.patch (text/plain) patch 0003
Attached are some patches to remove unnecessary casts in printf format arguments. Many of these are apparently left over from before use of %zu/%zd and PRIu64/PRId64 were possible. Additionally, there are a few where the cast just cast to the type the input already had, or it just uselessly cast to a different type instead of using the right format argument.
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Clean up int64-related format strings
- 907caf5c392a 19 (unreleased) landed
-
Remove unnecessary casts in printf format arguments (%zu/%zd)
- 2b117bb014d0 19 (unreleased) landed
-
Remove useless casts in format arguments
- 2268f2b91b55 19 (unreleased) landed