mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +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:
@@ -39,7 +39,6 @@ volatile sig_atomic_t TransactionTimeoutPending = false;
|
||||
volatile sig_atomic_t IdleSessionTimeoutPending = false;
|
||||
volatile sig_atomic_t ProcSignalBarrierPending = false;
|
||||
volatile sig_atomic_t LogMemoryContextPending = false;
|
||||
volatile sig_atomic_t PublishMemoryContextPending = false;
|
||||
volatile sig_atomic_t IdleStatsUpdateTimeoutPending = false;
|
||||
volatile uint32 InterruptHoldoffCount = 0;
|
||||
volatile uint32 QueryCancelHoldoffCount = 0;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user