diff options
author | Daniel Gustafsson | 2025-05-23 13:44:54 +0000 |
---|---|---|
committer | Daniel Gustafsson | 2025-05-23 13:44:54 +0000 |
commit | fb844b9f06568aa29303122ac0bb7b4c3cce2542 (patch) | |
tree | 66efe16dbf2d81153330a37d899f36f4524e338e /src/backend/utils/init/postinit.c | |
parent | 70a13c528b6e382a381ff95c15a4989e2dd9360b (diff) |
Revert function to get memory context stats for processes
Due to concerns raised about the approach, and memory leaks found
in sensitive contexts the functionality is reverted. This reverts
commits 45e7e8ca9, f8c115a6c, d2a1ed172, 55ef7abf8 and 042a66291
for v18 with an intent to revisit this patch for v19.
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r-- | src/backend/utils/init/postinit.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index 89d72cdd5ff..c86ceefda94 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -663,13 +663,6 @@ BaseInit(void) * drop ephemeral slots, which in turn triggers stats reporting. */ ReplicationSlotInitialize(); - - /* - * The before shmem exit callback frees the DSA memory occupied by the - * latest memory context statistics that could be published by this proc - * if requested. - */ - before_shmem_exit(AtProcExit_memstats_cleanup, 0); } |