Re: [HACKERS] MinGW / Windows / printf format specifiers

2016-02-19 Thread Tom Lane
Craig Ringer writes: > On 19 February 2016 at 12:15, Chapman Flack 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 str

Re: [HACKERS] MinGW / Windows / printf format specifiers

2016-02-18 Thread Craig Ringer
On 19 February 2016 at 12:15, Chapman Flack wrote: > > The cause seems to be that Windows conventions have int = long = int32 > (even on 64-bit platforms) and only 'long long' = int64. Yes, it's an LLP64 platform. https://en.wikipedia.org/wiki/64-bit_computing > The Java JNI > headers of co

[HACKERS] MinGW / Windows / printf format specifiers

2016-02-18 Thread Chapman Flack
So I announce a PL/Java 1.5.0-BETA1 with a comment that windows-MSVC was well tested but that I hadn't found anyone to test windows-mingw, and behold, what should happen but someone turns up with an interest in testing the mingw build, so we might have that back in shape as well for -BETA2. Haven'