aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.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
commit0440f49523fb88a3ecbc1672d8fcee20197c5c40 (patch)
tree26599b318c107ecd4c22ce760977330f618a34e4 /src/backend/access/gist/gistbuild.c
parent2b4ae9c29d42ce7b1b7bb947c585b78a21535aa2 (diff)
downloadpostgresql-0440f49523fb88a3ecbc1672d8fcee20197c5c40.tar.gz
postgresql-0440f49523fb88a3ecbc1672d8fcee20197c5c40.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/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions