mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
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 commits45e7e8ca9,f8c115a6c,d2a1ed172,55ef7abf8and042a66291for v18 with an intent to revisit this patch for v19. Discussion: https://postgr.es/m/594293.1747708165@sss.pgh.pa.us
This commit is contained in:
@@ -51,7 +51,6 @@
|
||||
#include "storage/sinvaladt.h"
|
||||
#include "utils/guc.h"
|
||||
#include "utils/injection_point.h"
|
||||
#include "utils/memutils.h"
|
||||
|
||||
/* GUCs */
|
||||
int shared_memory_type = DEFAULT_SHARED_MEMORY_TYPE;
|
||||
@@ -151,7 +150,6 @@ CalculateShmemSize(int *num_semaphores)
|
||||
size = add_size(size, InjectionPointShmemSize());
|
||||
size = add_size(size, SlotSyncShmemSize());
|
||||
size = add_size(size, AioShmemSize());
|
||||
size = add_size(size, MemoryContextReportingShmemSize());
|
||||
|
||||
/* include additional requested shmem from preload libraries */
|
||||
size = add_size(size, total_addin_request);
|
||||
@@ -345,7 +343,6 @@ CreateOrAttachShmemStructs(void)
|
||||
WaitEventCustomShmemInit();
|
||||
InjectionPointShmemInit();
|
||||
AioShmemInit();
|
||||
MemoryContextReportingShmemInit();
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -691,9 +691,6 @@ procsignal_sigusr1_handler(SIGNAL_ARGS)
|
||||
if (CheckProcSignal(PROCSIG_LOG_MEMORY_CONTEXT))
|
||||
HandleLogMemoryContextInterrupt();
|
||||
|
||||
if (CheckProcSignal(PROCSIG_GET_MEMORY_CONTEXT))
|
||||
HandleGetMemoryContextInterrupt();
|
||||
|
||||
if (CheckProcSignal(PROCSIG_PARALLEL_APPLY_MESSAGE))
|
||||
HandleParallelApplyMessageInterrupt();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user