diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-26 22:23:36 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-26 22:23:36 -0400 |
commit | 9a21ac082f5bfedac5d1a76d9c04e7c786cc242b (patch) | |
tree | 0c4a9e3ad6df9137f501b07d97ac179fb2df8b34 /src/backend/bootstrap/bootstrap.c | |
parent | 31f579f09ccdaaa63a65bdfba9a9803c4f563a98 (diff) |
Avoid unportable usage of sscanf(UINT64_FORMAT).
On Mingw, it seems that scanf() doesn't necessarily accept the same format
codes that printf() does, and in particular it may fail to recognize %llu
even though printf() does. Since configure only probes printf() behavior
while setting up the INT64_FORMAT macros, this means it's unsafe to use
those macros with scanf(). We had only one instance of such a coding
pattern, in contrib/pg_stat_statements, so change that code to avoid
the problem.
Per buildfarm warnings. Back-patch to 9.0 where the troublesome code
was introduced.
Michael Paquier
Diffstat (limited to 'src/backend/bootstrap/bootstrap.c')
0 files changed, 0 insertions, 0 deletions