|
|
@ -717,10 +717,10 @@ MemoryContextStatsDetail(MemoryContext context, int max_children, |
|
|
|
* to the connected client. |
|
|
|
* to the connected client. |
|
|
|
* |
|
|
|
* |
|
|
|
* We don't buffer the information about all memory contexts in a |
|
|
|
* We don't buffer the information about all memory contexts in a |
|
|
|
* backend into StringInfo and log it as one message. Otherwise which |
|
|
|
* backend into StringInfo and log it as one message. That would |
|
|
|
* may require the buffer to be enlarged very much and lead to OOM |
|
|
|
* require the buffer to be enlarged, risking an OOM as there could |
|
|
|
* error since there can be a large number of memory contexts in a |
|
|
|
* be a large number of memory contexts in a backend. Instead, we |
|
|
|
* backend. Instead, we log one message per memory context. |
|
|
|
* log one message per memory context. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
ereport(LOG_SERVER_ONLY, |
|
|
|
ereport(LOG_SERVER_ONLY, |
|
|
|
(errhidestmt(true), |
|
|
|
(errhidestmt(true), |
|
|
|