postgresql/src/include
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
..
access Remove redundant IndexTupleDSize macro. 2018-02-28 19:25:54 -05:00
bootstrap Update copyright for 2018 2018-01-02 23:30:12 -05:00
catalog Remove pg_class.relhaspkey 2018-03-14 15:31:34 -04:00
commands Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
common restrict -> pg_restrict 2018-03-15 10:02:59 -03:00
datatype Update copyright for 2018 2018-01-02 23:30:12 -05:00
executor Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
fe_utils Empty search_path in Autovacuum and non-psql/pgbench clients. 2018-02-26 07:39:44 -08:00
foreign Update copyright for 2018 2018-01-02 23:30:12 -05:00
lib Minor clean-up in dshash.{c,h}. 2018-03-01 16:25:46 -08:00
libpq Use abstracted SSL API in server connection log messages 2018-01-26 09:50:46 -05:00
mb Update copyright for 2018 2018-01-02 23:30:12 -05:00
nodes Change internal integer representation of Value node 2018-03-13 09:56:25 -04:00
optimizer Fix improper uses of canonicalize_qual(). 2018-03-11 18:10:42 -04:00
parser Allow UNIQUE indexes on partitioned tables 2018-02-19 17:40:00 -03:00
port Remove outdated/removed Win32 URLs in C comments 2018-01-09 18:33:21 -05:00
portability Update copyright for 2018 2018-01-02 23:30:12 -05:00
postmaster Fix more format truncation issues 2018-03-15 11:41:42 -04:00
regex Update copyright for 2018 2018-01-02 23:30:12 -05:00
replication logical replication: fix OID type mapping mechanism 2018-03-14 21:34:26 -03:00
rewrite Update copyright for 2018 2018-01-02 23:30:12 -05:00
snowball Update copyright for 2018 2018-01-02 23:30:12 -05:00
statistics Update copyright for 2018 2018-01-02 23:30:12 -05:00
storage Fix crash when canceling parallel query 2018-02-16 16:21:24 -05:00
tcop Replace GrantObjectType with ObjectType 2018-01-19 14:01:14 -05:00
tsearch Update copyright for 2018 2018-01-02 23:30:12 -05:00
utils Fix assorted issues in convert_to_scalar(). 2018-03-03 20:31:35 -05:00
.gitignore
c.h Fix StaticAssertExpr() under C++ 2018-02-18 22:28:11 -05:00
fmgr.h Remove prototype for fmgr() function, which no longer exists. 2018-02-07 08:42:36 -05:00
funcapi.h Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
getaddrinfo.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
getopt_long.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
Makefile
miscadmin.h Mark assorted GUC variables as PGDLLIMPORT. 2018-02-09 15:54:45 -05:00
pg_config_ext.h.in
pg_config_ext.h.win32
pg_config_manual.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_config.h.in Another attempt at fixing build with various OpenSSL versions 2018-01-04 19:09:27 -05:00
pg_config.h.win32 Fix up ecpg's configuration so it handles "long long int" in MSVC builds. 2018-02-27 16:46:52 -05:00
pg_getopt.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pg_trace.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgstat.h Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
pgtar.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
pgtime.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
port.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
postgres_ext.h
postgres_fe.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
postgres.h Move the extern declaration for ExceptionalCondition into c.h. 2018-02-14 19:43:33 -05:00
rusagestub.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
windowapi.h Update copyright for 2018 2018-01-02 23:30:12 -05:00