aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/parallel.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2016-08-19 14:38:55 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2016-08-19 14:38:55 -0300
commitac3aac3292d6e958bb8235120ba6a12159a29afe (patch)
tree3b69850d4d9cb3c721fffc92117770b78f10da79 /src/backend/access/transam/parallel.c
parentc4f1540d3a296d0328e21b32cdc612f611353b7c (diff)
downloadpostgresql-ac3aac3292d6e958bb8235120ba6a12159a29afe.tar.gz
postgresql-ac3aac3292d6e958bb8235120ba6a12159a29afe.zip
reorderbuffer: preserve errno while reporting error
Clobbering errno during cleanup after an error is an oft-repeated, easy to make mistake. Deal with it here as everywhere else, by saving it aside and restoring after cleanup, before ereport'ing. In passing, add a missing errcode declaration in another ereport() call in the same file, which I noticed while skimming the file looking for similar problems. Backpatch to 9.4, where this code was introduced.
Diffstat (limited to 'src/backend/access/transam/parallel.c')
0 files changed, 0 insertions, 0 deletions