postgresql/src/bin
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
..
initdb Fix more format truncation issues 2018-03-15 11:41:42 -04:00
pg_archivecleanup pg_archivecleanup: Add test suite 2017-09-14 22:23:00 -04:00
pg_basebackup Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
pg_config Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_controldata Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_ctl Support huge pages on Windows 2018-01-21 15:40:46 +01:00
pg_dump Fix more format truncation issues 2018-03-15 11:41:42 -04:00
pg_resetwal Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_rewind Fix pg_rewind to handle relation data files in tablespaces properly. 2018-03-06 02:08:18 +09:00
pg_test_fsync Make WAL segment size configurable at initdb time. 2017-09-19 22:03:48 -07:00
pg_test_timing pg_test_timing: Some NLS fixes 2017-08-26 09:25:19 -04:00
pg_upgrade Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
pg_waldump Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgbench Fix more format truncation issues 2018-03-15 11:41:42 -04:00
pgevent Update copyright for 2018 2018-01-02 23:30:12 -05:00
psql In psql, restore old behavior of Query_for_list_of_functions. 2018-03-10 13:18:21 -05:00
scripts Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
Makefile Update copyright for 2018 2018-01-02 23:30:12 -05:00