postgresql/src/backend/utils
Peter Eisentraut 3a4b891964 Fix more format truncation issues
Fix the warnings created by the compiler warning options
-Wformat-overflow=2 -Wformat-truncation=2, supported since GCC 7.  This
is a more aggressive variant of the fixes in
6275f5d28a, which GCC 7 warned about by
default.

The issues are all harmless, but some dubious coding patterns are
cleaned up.

One issue that is of external interest is that BGW_MAXLEN is increased
from 64 to 96.  Apparently, the old value would cause the bgw_name of
logical replication workers to be truncated in some circumstances.

But this doesn't actually add those warning options.  It appears that
the warnings depend a bit on compilation and optimization options, so it
would be annoying to have to keep up with that.  This is more of a
once-in-a-while cleanup.

Reviewed-by: Michael Paquier <michael@paquier.xyz>
2018-03-15 11:41:42 -04:00
..
adt Fix more format truncation issues 2018-03-15 11:41:42 -04:00
cache Fix improper uses of canonicalize_qual(). 2018-03-11 18:10:42 -04:00
error Update copyright for 2018 2018-01-02 23:30:12 -05:00
fmgr Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
hash Update copyright for 2018 2018-01-02 23:30:12 -05:00
init Fix cross-checking of ReservedBackends/max_wal_senders/MaxConnections. 2018-03-08 11:25:26 -05:00
mb Update headers of generated files 2018-02-24 14:54:17 -05:00
misc Fix more format truncation issues 2018-03-15 11:41:42 -04:00
mmgr Fix crash when canceling parallel query 2018-02-16 16:21:24 -05:00
resowner Update copyright for 2018 2018-01-02 23:30:12 -05:00
sort Avoid another valgrind complaint about write() of uninitalized bytes. 2018-02-22 09:28:12 -05:00
time Update copyright for 2018 2018-01-02 23:30:12 -05:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
Gen_dummy_probes.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
Gen_dummy_probes.sed Update copyright for 2018 2018-01-02 23:30:12 -05:00
Gen_fmgrtab.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile Replace binary search in fmgr_isbuiltin with a lookup array. 2017-10-04 00:22:38 -07:00
errcodes.txt Support all SQL:2011 options for window frame clauses. 2018-02-07 00:06:56 -05:00
generate-errcodes.pl Update copyright for 2018 2018-01-02 23:30:12 -05:00
probes.d Support parallel btree index builds. 2018-02-02 13:32:44 -05:00