postgresql/src/backend
Alvaro Herrera 6f79ae7fe5 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.
2016-08-19 14:38:55 -03:00
..
access Fix deletion of speculatively inserted TOAST on conflict 2016-08-17 17:03:36 -07:00
bootstrap Revert CREATE INDEX ... INCLUDING ... 2016-04-08 21:52:13 +03:00
catalog Implement regexp_match(), a simplified alternative to regexp_matches(). 2016-08-17 18:33:01 -04:00
commands Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
executor Improve parsetree representation of special functions such as CURRENT_DATE. 2016-08-16 20:33:01 -04:00
foreign Remove GetUserMappingId() and GetUserMappingById(). 2016-07-22 11:32:23 -04:00
lib Remove mergeHyperLogLog. 2016-04-27 10:55:32 -04:00
libpq Refactor sendAuthRequest. 2016-08-18 13:25:31 +03:00
main Repair a bit of pgindent damage. 2016-06-09 18:09:17 -04:00
nodes Improve parsetree representation of special functions such as CURRENT_DATE. 2016-08-16 20:33:01 -04:00
optimizer Improve parsetree representation of special functions such as CURRENT_DATE. 2016-08-16 20:33:01 -04:00
parser Improve parsetree representation of special functions such as CURRENT_DATE. 2016-08-16 20:33:01 -04:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Remove obsolete replacement system() on darwin 2016-08-18 12:00:00 -04:00
postmaster Refactor RandomSalt to handle salts of different lengths. 2016-08-18 13:41:17 +03:00
regex Clean up another pre-ANSI-C-ism in regex code: get rid of pcolor typedef. 2016-08-19 13:31:10 -04:00
replication reorderbuffer: preserve errno while reporting error 2016-08-19 14:38:55 -03:00
rewrite pgindent run for 9.6 2016-06-09 18:02:36 -04:00
snowball Update copyright for 2016 2016-01-02 13:33:40 -05:00
storage Once again allow LWLocks to be used within DSM segments. 2016-08-15 18:09:55 -04:00
tcop Fix TOAST access failure in RETURNING queries. 2016-08-07 17:46:08 -04:00
tsearch Final pgindent + perltidy run for 9.6. 2016-08-15 13:42:51 -04:00
utils Fix deletion of speculatively inserted TOAST on conflict 2016-08-17 17:03:36 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Provide and use a makefile target to build all generated headers. 2016-07-01 15:09:02 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00