postgresql/src/backend/commands
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
..
aggregatecmds.c Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
alter.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
amcmds.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
analyze.c When updating reltuples after ANALYZE, just extrapolate from our sample. 2018-03-13 13:24:27 -04:00
async.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
cluster.c Support parallel btree index builds. 2018-02-02 13:32:44 -05:00
collationcmds.c Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
comment.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
constraint.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
conversioncmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
copy.c Be lazier about partition tuple routing. 2018-02-22 10:55:54 -05:00
createas.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
dbcommands.c Message style fix 2018-02-18 17:16:11 -05:00
define.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
discard.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
dropcmds.c Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
event_trigger.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
explain.c Fix more format truncation issues 2018-03-15 11:41:42 -04:00
extension.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
foreigncmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
functioncmds.c Support INOUT arguments in procedures 2018-03-14 12:07:28 -04:00
indexcmds.c Avoid having two PKs in a partition 2018-03-12 19:42:32 -03:00
lockcmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
matview.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
opclasscmds.c Support all SQL:2011 options for window frame clauses. 2018-02-07 00:06:56 -05:00
operatorcmds.c Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
policy.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
portalcmds.c Remove PortalGetQueryDesc() 2018-01-09 13:47:56 -05:00
prepare.c Update portal-related memory context names and API 2018-01-09 13:47:56 -05:00
proclang.c Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
publicationcmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
schemacmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
seclabel.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
sequence.c Fix CREATE TABLE / LIKE with bigint identity column 2018-03-13 09:41:30 -04:00
statscmds.c Fix bogus Name assignment in CreateStatistics 2018-03-06 13:20:40 -03:00
subscriptioncmds.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
tablecmds.c Avoid having two PKs in a partition 2018-03-12 19:42:32 -03:00
tablespace.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
trigger.c Prevent dangling-pointer access when update trigger returns old tuple. 2018-02-27 13:28:02 -05:00
tsearchcmds.c Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
typecmds.c Add prokind column, replacing proisagg and proiswindow 2018-03-02 13:48:33 -05:00
user.c Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
vacuum.c Remove pg_class.relhaspkey 2018-03-14 15:31:34 -04:00
vacuumlazy.c When updating reltuples after ANALYZE, just extrapolate from our sample. 2018-03-13 13:24:27 -04:00
variable.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
view.c Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00