postgresql/src/backend
Tom Lane 2bed650c48 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
2021-03-18 20:37:09 -04:00
..
access Prevent buffer overrun in read_tablespace_map(). 2021-03-17 16:10:38 -04:00
bootstrap Revert "Skip WAL for new relfilenodes, under wal_level=minimal." 2020-03-22 09:24:14 -07:00
catalog Disallow converting an inheritance child table to a view. 2021-02-06 15:17:02 -05:00
commands Validate the OID argument of pg_import_system_collations(). 2021-03-08 18:21:51 -05:00
executor Remove faulty support for MergeAppend plan with WHERE CURRENT OF. 2021-01-19 13:25:54 -05:00
foreign Abstract logic to allow for multiple kinds of child rels. 2017-04-03 22:41:31 -04:00
lib Rename rbtree.c functions to use "rbt" prefix not "rb" prefix. 2018-11-06 13:25:24 -05:00
libpq Avoid corner-case memory leak in SSL parameter processing. 2021-03-16 16:02:50 -04:00
main Install Windows crash dump handler before all else. 2017-11-12 14:31:04 -08:00
nodes Ensure that expandTableLikeClause() re-examines the same table. 2020-12-01 14:02:28 -05:00
optimizer Silence another gcc 11 warning. 2021-01-28 17:18:42 -05:00
parser Forbid marking an identity column as nullable. 2021-03-12 11:08:42 -05:00
po Translation updates 2021-02-08 18:07:32 +01:00
port Fix race condition in our Windows signal emulation. 2019-12-09 15:03:52 -05:00
postmaster Fix race condition between shutdown and unstarted background workers. 2020-12-24 17:00:43 -05:00
regex Fix another ancient bug in parsing of BRE-mode regular expressions. 2021-02-18 22:38:55 -05:00
replication Fix memory leak in SnapBuildSerialize. 2021-01-13 09:01:57 +05:30
rewrite Revert "Propagate CTE property flags when copying a CTE list into a rule." 2021-02-07 12:54:08 -05:00
snowball Initial pgindent run with pg_bsd_indent version 2.0. 2017-06-21 14:39:04 -04:00
statistics Make error logging in extended statistics more consistent 2019-05-30 17:06:35 +02:00
storage Hold interrupts while running dsm_detach() callbacks. 2021-02-15 14:22:08 +13:00
tcop Further second thoughts about idle_session_timeout patch. 2021-01-07 11:45:09 -05:00
tsearch Avoid possible dangling-pointer access in tsearch_readline_callback. 2020-09-23 11:36:13 -04:00
utils Don't leak rd_statlist when a relcache entry is dropped. 2021-03-18 20:37:09 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Add ICU_CFLAGS to global CPPFLAGS 2017-06-12 15:57:22 -04:00
Makefile Fix make rules that generate multiple output files. 2018-03-23 13:45:38 -04:00
nls.mk Translation updates 2018-05-07 11:59:42 -04:00