aboutsummaryrefslogtreecommitdiff
path: root/src/backend
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
parent69fb29d1affb525d4c91b4dc5b104a551e61c28d (diff)
downloadpostgresql-5f6401f81cb24bd3930e0dc589fc4aa8b5424cdc.tar.gz
postgresql-5f6401f81cb24bd3930e0dc589fc4aa8b5424cdc.zip
Fix typos in code and comments
Author: Justin Pryzby Discussion: https://postgr.es/m/20230110045722.GD9837@telsasoft.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/transam/xlogrecovery.c2
-rw-r--r--src/backend/utils/mmgr/mcxt.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c
index bc3c3eb3e79..5e657853066 100644
--- a/src/backend/access/transam/xlogrecovery.c
+++ b/src/backend/access/transam/xlogrecovery.c
@@ -2114,7 +2114,7 @@ CheckRecoveryConsistency(void)
/*
* Check that pg_tblspc doesn't contain any real directories. Replay
- * of Database/CREATE_* records may have created ficticious tablespace
+ * of Database/CREATE_* records may have created fictitious tablespace
* directories that should have been removed by the time consistency
* was reached.
*/
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),