citus/src/include
Nils Dijk 1785ea951a
Fix leaking of memory and memory contexts in Foreign Constraint Graphs (#7236)
DESCRIPTION: Fix leaking of memory and memory contexts in Foreign
Constraint Graphs

Previously, every time we (re)created the Foreign Constraint
Relationship Graph, we created a new Memory Context while loosing a
reference to the previous context. This old context could still have
left over memory in there causing a memory leak.

With this patch we statically have one memory context that we lazily
initialize the first time we create our foreign constraint relationship
graph. On every subsequent creation, beside destroying our previous
hashmap we also reset our memory context to remove any left over
references.
2023-10-09 13:15:59 +02:00
..
columnar [Columnar] Bugfix for Columnar: options ignored during ALTER TABLE rewrite (#6337) 2022-10-05 11:42:09 -07:00
distributed Fix leaking of memory and memory contexts in Foreign Constraint Graphs (#7236) 2023-10-09 13:15:59 +02:00
.gitignore Self-implemented review feedback 2017-04-03 22:55:12 -06:00
citus_config.h.in Renames configure.in to fix warnings (#6034) 2022-07-19 18:24:15 +02:00
citus_version.h.in HAVE_LZ4 -> HAVE_CITUS_LZ4 (#5541) 2021-12-16 16:21:52 +03:00
pg_version_compat.h Support compilation and run tests on latest PG versions (#6711) 2023-02-10 16:34:46 +01:00