summaryrefslogtreecommitdiff
path: root/src/backend/utils/mmgr/mcxt.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-01-11 15:16:38 +0900
committerMichael Paquier <michael@paquier.xyz>2023-01-11 15:16:38 +0900
commit5f6401f81cb24bd3930e0dc589fc4aa8b5424cdc (patch)
tree11d27dd11f3d31ad50a027e69e38bc54f3539206 /src/backend/utils/mmgr/mcxt.c
parent69fb29d1affb525d4c91b4dc5b104a551e61c28d (diff)
Fix typos in code and comments
Author: Justin Pryzby Discussion: https://postgr.es/m/20230110045722.GD9837@telsasoft.com
Diffstat (limited to 'src/backend/utils/mmgr/mcxt.c')
-rw-r--r--src/backend/utils/mmgr/mcxt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c
index 8b6591abfb2..0b00802df70 100644
--- a/src/backend/utils/mmgr/mcxt.c
+++ b/src/backend/utils/mmgr/mcxt.c
@@ -717,10 +717,10 @@ MemoryContextStatsDetail(MemoryContext context, int max_children,
* to the connected client.
*
* We don't buffer the information about all memory contexts in a
- * backend into StringInfo and log it as one message. Otherwise which
- * may require the buffer to be enlarged very much and lead to OOM
- * error since there can be a large number of memory contexts in a
- * backend. Instead, we log one message per memory context.
+ * backend into StringInfo and log it as one message. That would
+ * require the buffer to be enlarged, risking an OOM as there could
+ * be a large number of memory contexts in a backend. Instead, we
+ * log one message per memory context.
*/
ereport(LOG_SERVER_ONLY,
(errhidestmt(true),