mirror of
https://github.com/postgres/postgres.git
synced 2025-10-27 00:12:01 +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();
|
||||
|
||||
|
||||
@@ -178,8 +178,6 @@ static const char *const BuiltinTrancheNames[] = {
|
||||
[LWTRANCHE_XACT_SLRU] = "XactSLRU",
|
||||
[LWTRANCHE_PARALLEL_VACUUM_DSA] = "ParallelVacuumDSA",
|
||||
[LWTRANCHE_AIO_URING_COMPLETION] = "AioUringCompletion",
|
||||
[LWTRANCHE_MEMORY_CONTEXT_REPORTING_STATE] = "MemoryContextReportingState",
|
||||
[LWTRANCHE_MEMORY_CONTEXT_REPORTING_PROC] = "MemoryContextReportingPerProcess",
|
||||
};
|
||||
|
||||
StaticAssertDecl(lengthof(BuiltinTrancheNames) ==
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
#include "storage/procsignal.h"
|
||||
#include "storage/spin.h"
|
||||
#include "storage/standby.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/timeout.h"
|
||||
#include "utils/timestamp.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user