postgresql/src
Thomas Munro 93745f1e01 Fix memory leak on DSM slot exhaustion.
If we attempt to create a DSM segment when no slots are available,
we should return the memory to the operating system.  Previously
we did that if the DSM_CREATE_NULL_IF_MAXSEGMENTS flag was
passed in, but we didn't do it if an error was raised.  Repair.

Back-patch to 9.4, where DSM segments arrived.

Author: Thomas Munro
Reviewed-by: Robert Haas
Reported-by: Julian Backes
Discussion: https://postgr.es/m/CA%2BhUKGKAAoEw-R4om0d2YM4eqT1eGEi6%3DQot-3ceDR-SLiWVDw%40mail.gmail.com
2020-02-01 14:29:13 +13:00
..
backend Fix memory leak on DSM slot exhaustion. 2020-02-01 14:29:13 +13:00
bin Fix parallel pg_dump/pg_restore for failure to create worker processes. 2020-01-31 14:41:49 -05:00
common Move jsonapi.c and jsonapi.h to src/common. 2020-01-29 10:22:51 -05:00
fe_utils Reduce size of backend scanner's tables. 2020-01-13 15:04:31 -05:00
include Fix CheckAttributeType's handling of collations for ranges. 2020-01-31 17:03:55 -05:00
interfaces Allow building without default socket directory 2020-01-31 16:28:43 +01:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
port Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
template Fix compiler warning for ppoll() on Cygwin 2019-12-22 23:20:00 +01:00
test Fix CheckAttributeType's handling of collations for ranges. 2020-01-31 17:03:55 -05:00
timezone Update copyrights for 2020 2020-01-01 12:21:45 -05:00
tools Fix vcregress.pl for new plperl test case. 2020-01-29 19:13:34 -05:00
tutorial Update copyrights for 2020 2020-01-01 12:21:45 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Add support for automatically updating Unicode derived files 2020-01-09 10:08:14 +01:00
Makefile.shlib
nls-global.mk