Teodor Sigaev <teodor(at)sigaev(dot)ru> writes:
>> ereport(...errmsg("trouble at offset " UINT64_FORMAT, bigintvar));
> One more solution: add format code %D to expand_fmt_string() which should be
> expanded to usual %d on 32-bit architecture and to UINT64_FORMAT on 64-bit.
Not very workable unless you can figure out how to teach gcc what it means...
else we lose compiler checking that the corresponding argument matches,
which'd be even more important than usual with a machine-dependent
format code.
regards, tom lane
In response to
pgsql-hackers by date
| Next: | From: Stefan Kaltenbrunner | Date: 2006-09-06 17:01:21 |
| Subject: Re: ECPG/OpenBSD buildfarm failures, take I |
| Previous: | From: Stephen Frost | Date: 2006-09-06 16:50:20 |
| Subject: Multi-valued user-defined types |
pgsql-committers by date
| Next: | From: User H-saito | Date: 2006-09-06 17:45:05 |
| Subject: npgsql - Npgsql: Ooops,sorry.. |
| Previous: | From: Teodor Sigaev | Date: 2006-09-06 16:41:24 |
| Subject: Re: [HACKERS] pgsql: Fix compiler warnings on 64-bit |