diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-26 22:23:33 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-05-26 22:23:33 -0400 |
commit | b8cf89c041d0789d9353a2875a1041c77429037c (patch) | |
tree | 9e5a3c3db32eea0c956274eaba4ad3dc62a77897 /src/tutorial/funcs.c | |
parent | 0266a9c78139d0f0d64dc1c440e60b8f30172046 (diff) | |
download | postgresql-b8cf89c041d0789d9353a2875a1041c77429037c.tar.gz postgresql-b8cf89c041d0789d9353a2875a1041c77429037c.zip |
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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions