Craig Ringer <craig@2ndquadrant.com> writes:
> On 19 February 2016 at 12:15, Chapman Flack <chap@anastigmatix.net> wrote:
>> Have issues like this been dealt with in PostgreSQL code before, and did
>> a favorite approach emerge?
> INT64_FORMAT and UINT64_FORMAT
Yeah. Note in particular the convention to avoid using those in
translatable strings. Where necessary, we manage that by using
sprintf(INT64_FORMAT) into a buffer variable and then printing
the buffer with %s in the translatable message. Grotty, but there
seems no other way that doesn't result in platform-dependent
translatable strings.
regards, tom lane