postgresql/src
Thomas Munro 3acd0599bd Fix exception safety bug in typcache.c.
If an out-of-memory error was thrown at an unfortunate time,
ensure_record_cache_typmod_slot_exists() could leak memory and leave
behind a global state that produced an infinite loop on the next call.

Fix by merging RecordCacheArray and RecordIdentifierArray into a single
array.  With only one allocation or re-allocation, there is no
intermediate state.

Back-patch to all supported releases.

Reported-by: "James Pang (chaolpan)" <chaolpan@cisco.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/PH0PR11MB519113E738814BDDA702EDADD6EFA%40PH0PR11MB5191.namprd11.prod.outlook.com
2023-09-13 14:58:22 +12:00
..
backend Fix exception safety bug in typcache.c. 2023-09-13 14:58:22 +12:00
bin Switch psql's TAP test for query cancellation to use IPC::Run::signal() 2023-09-13 10:10:04 +09:00
common Add support for syncfs() in frontend support functions. 2023-09-06 16:27:00 -07:00
fe_utils Allow using syncfs() in frontend utilities. 2023-09-06 16:27:16 -07:00
include Add JIT deform_counter 2023-09-08 15:05:12 +02:00
interfaces Fix comment of PQputCopyEnd() 2023-08-30 08:29:08 +09:00
makefiles Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
pl Avoid unnecessary plancache revalidation of utility statements. 2023-08-24 12:02:46 -04:00
port Meson: check for pg_config_paths.h left over from make 2023-08-24 10:33:53 +12:00
template
test Stabilize subscription stats test. 2023-09-08 22:50:59 +09:00
timezone Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
tools Fix exception safety bug in typcache.c. 2023-09-13 14:58:22 +12:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Generate a locale-agnostic initdb template 2023-08-29 18:06:55 +02:00
Makefile.shlib
meson.build
nls-global.mk