On 2019-05-22 17:52, Tom Lane wrote: > I don't really see how controlling snprintf is enough to get somewhere > on this. Sure we could invent some new always-64-bit length modifier > and teach snprintf.c about it, but none of the other tools we use > would know about it. I don't want to give up compiler cross-checking > of printf formats, do you?
Could we define int64 to be long long int on all platforms and just always use %lld? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services