src/backend/utils/mmgr/mcxt.c
void
ProcessLogMemoryContextInterrupt(void)
{
	LogMemoryContextPending = false;

	ereport(LOG,
			(errmsg("logging memory contexts of PID %d", MyProcPid)));

	/*
	 * When a backend process is consuming huge memory, logging all its memory
	 * contexts might overrun available disk space. To prevent this, we limit
	 * the number of child contexts to log per parent to 100.
	 *
	 * As with MemoryContextStats(), we suppose that practical cases where the
	 * dump gets long will typically be huge numbers of siblings under the
	 * same parent context; while the additional debugging value from seeing
	 * details about individual siblings beyond 100 will not be large.
	 */
	MemoryContextStatsDetail(TopMemoryContext, 100, false);
}
/*
 * ProcessLogMemoryContextInterrupt
 * 		Perform logging of memory contexts of this backend process.
 *
 * Any backend that participates in ProcSignal signaling must arrange
 * to call this function if we see LogMemoryContextPending set.
 * It is called from CHECK_FOR_INTERRUPTS(), which is enough because
 * the target process for logging of memory contexts is a backend.
 */
ProcessLogMemoryContextInterrupt
Perform logging of memory contexts of this backend process.

Any backend that participates in ProcSignal signaling must arrange
to call this function if we see LogMemoryContextPending set.
It is called from CHECK_FOR_INTERRUPTS(), which is enough because
the target process for logging of memory contexts is a backend.
ProcessLogMemoryContextInterrupt Perform logging of memory contexts of this backend process . Any backend that participates in ProcSignal signaling must arrange to call this function if we see LogMemoryContextPending set . It is called from CHECK_FOR_INTERRUPTS () which is enough because the target process for logging of memory contexts is a backend .
void
ProcessLogMemoryContextInterrupt(void)
{
	LogMemoryContextPending = false;
	ereport(LOG,
			(errmsg("logging memory contexts of PID %d", MyProcPid)));
	MemoryContextStatsDetail(TopMemoryContext, 100, false);
}
void ProcessLogMemoryContextInterrupt ( void ) { LogMemoryContextPending = false ; ereport ( LOG , ( errmsg ( " " , MyProcPid ) ) ) ; MemoryContextStatsDetail ( TopMemoryContext , 100 , false ) ; }
ProcessLogMemoryContextInterrupt
              Perform logging of memory contexts of this backend process.
ProcessLogMemoryContextInterrupt Perform logging of memory contexts of this backend process .
/*
	 * When a backend process is consuming huge memory, logging all its memory
	 * contexts might overrun available disk space. To prevent this, we limit
	 * the number of child contexts to log per parent to 100.
	 *
	 * As with MemoryContextStats(), we suppose that practical cases where the
	 * dump gets long will typically be huge numbers of siblings under the
	 * same parent context; while the additional debugging value from seeing
	 * details about individual siblings beyond 100 will not be large.
	 */