postgresql/src/backend/commands
Tom Lane 571addd729 Fix unsafe references to errno within error messaging logic.
Various places were supposing that errno could be expected to hold still
within an ereport() nest or similar contexts.  This isn't true necessarily,
though in some cases it accidentally failed to fail depending on how the
compiler chanced to order the subexpressions.  This class of thinko
explains recent reports of odd failures on clang-built versions, typically
missing or inappropriate HINT fields in messages.

Problem identified by Christian Kruse, who also submitted the patch this
commit is based on.  (I fixed a few issues in his patch and found a couple
of additional places with the same disease.)

Back-patch as appropriate to all supported branches.
2014-01-29 20:04:43 -05:00
..
Makefile Add a materialized view relations. 2013-03-03 18:23:31 -06:00
aggregatecmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
alter.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
analyze.c Fix compute_scalar_stats() for case that all values exceed WIDTH_THRESHOLD. 2014-01-11 13:42:42 -05:00
async.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
cluster.c Fix typo in comment. 2014-01-21 02:24:17 +09:00
collationcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
comment.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
constraint.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
conversioncmds.c Make various variables const (read-only). 2014-01-18 16:04:32 -05:00
copy.c Speed up COPY into tables with DEFAULT nextval() 2014-01-20 17:22:38 +00:00
createas.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dbcommands.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
define.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
discard.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
dropcmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
event_trigger.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
explain.c Include planning time in EXPLAIN ANALYZE output. 2014-01-29 16:09:15 -05:00
extension.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
foreigncmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
functioncmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
indexcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
lockcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
matview.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
opclasscmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
operatorcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
portalcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
prepare.c Include planning time in EXPLAIN ANALYZE output. 2014-01-29 16:09:15 -05:00
proclang.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
schemacmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
seclabel.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
sequence.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tablecmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
tablespace.c Fix unsafe references to errno within error messaging logic. 2014-01-29 20:04:43 -05:00
trigger.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
tsearchcmds.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
typecmds.c Make DROP IF EXISTS more consistently not fail 2014-01-23 14:40:29 -03:00
user.c ALTER TABLESPACE ... MOVE ... OWNED BY 2014-01-23 23:52:40 -05:00
vacuum.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
vacuumlazy.c Fix VACUUM's reporting of dead-tuple counts to the stats collector. 2014-01-18 19:24:33 -05:00
variable.c Update copyright for 2014 2014-01-07 16:05:30 -05:00
view.c Update copyright for 2014 2014-01-07 16:05:30 -05:00