Обсуждение: pgsql: Don't leak rd_statlist when a relcache entry is dropped.

Поиск
Список
Период
Сортировка

pgsql: Don't leak rd_statlist when a relcache entry is dropped.

От
Tom Lane
Дата:
Don't leak rd_statlist when a relcache entry is dropped.

Although these lists are usually NIL, and even when not empty
are unlikely to be large, constant relcache update traffic could
eventually result in visible bloat of CacheMemoryContext.

Found via valgrind testing.
Back-patch to v10 where this field was added.

Discussion: https://postgr.es/m/3816764.1616104288@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2bed650c4841cb63a8cede0db9452664f39bc314

Modified Files
--------------
src/backend/utils/cache/relcache.c | 1 +
1 file changed, 1 insertion(+)