diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-08-19 14:38:55 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2016-08-19 14:38:55 -0300 |
commit | 6f79ae7fe549bed8bbd1f54ddd9b98f8f9a315f5 (patch) | |
tree | e469ebac126fa446cf570f7bfd573871566c2e09 /src/backend/access/gist/gistutil.c | |
parent | a859e640035680db31531ccd19a67292dd726baf (diff) | |
download | postgresql-6f79ae7fe549bed8bbd1f54ddd9b98f8f9a315f5.tar.gz |
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/gistutil.c')
0 files changed, 0 insertions, 0 deletions