aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-01-29 20:04:01 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-01-29 20:04:01 -0500
commitbf8ee6f157fa587f1c71bc9252e53a34bdc4e8be (patch)
tree839813e16a425d1af197b9136b611d31287747ba /contrib/postgres_fdw
parent56c08df55be5a3f12ddc45edcf29b6ecc4111e59 (diff)
downloadpostgresql-bf8ee6f157fa587f1c71bc9252e53a34bdc4e8be.tar.gz
postgresql-bf8ee6f157fa587f1c71bc9252e53a34bdc4e8be.zip
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.
Diffstat (limited to 'contrib/postgres_fdw')
0 files changed, 0 insertions, 0 deletions