From 71404e4fe2997a756db092b69fee3248e86395ef Mon Sep 17 00:00:00 2001
From: Peter Smith <peter.b.smith@fujitsu.com>
Date: Fri, 6 Nov 2026 09:00:33 +1100
Subject: [PATCH v1] fix typos in code comments

---
 src/backend/access/transam/xlog.c      | 2 +-
 src/backend/executor/nodeModifyTable.c | 4 ++--
 src/bin/pg_dump/compress_lz4.c         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 8636ad9ab2c..fd37ea4f607 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -6266,7 +6266,7 @@ StartupXLOG(void)
 	 * checkpoint the same way a restartpoint horizon can.
 	 *
 	 * Never adopt over a state over the watermark or a node-local
-	 * pg_checksums change, it generats no WAL so nothing in the replayed WAL
+	 * pg_checksums change, it generates no WAL so nothing in the replayed WAL
 	 * could restore it once overwritten.  Otherwise, even a watermark above
 	 * the redo point must not prevent adoption.  A primary backup copies
 	 * pg_control after the relation files, which may still contain pages
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index 7f057ab4029..080535fac0f 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -3578,7 +3578,7 @@ lmerge_matched:
 				 * handle it using any NOT MATCHED [BY TARGET] actions.
 				 * Otherwise, for a NOT MATCHED BY SOURCE action, neither the
 				 * source row nor the target row now exists, so there is no
-				 * futher action to execute.
+				 * further action to execute.
 				 */
 				if (relaction->mas_action->matchKind == MERGE_WHEN_MATCHED)
 					*matched = false;
@@ -3741,7 +3741,7 @@ lmerge_matched:
 							 * using any NOT MATCHED [BY TARGET] actions.
 							 * Otherwise, for a NOT MATCHED BY SOURCE action,
 							 * neither the source row nor the target row now
-							 * exists, so there is no futher action to
+							 * exists, so there is no further action to
 							 * execute.
 							 */
 							if (was_matched)
diff --git a/src/bin/pg_dump/compress_lz4.c b/src/bin/pg_dump/compress_lz4.c
index a4ae1a4272f..b423ff4fe92 100644
--- a/src/bin/pg_dump/compress_lz4.c
+++ b/src/bin/pg_dump/compress_lz4.c
@@ -626,7 +626,7 @@ LZ4Stream_gets(char *ptr, int size, CompressFileHandle *CFH)
 	 * LZ4Stream_read_internal returning 0 or -1 means that it was either an
 	 * EOF or an error, but gets_func is defined to return NULL in either case
 	 * so we can treat both the same here. LZ4Stream_read_internal is expected
-	 * to have performed relevent error logging already.
+	 * to have performed relevant error logging already.
 	 */
 	if (ret <= 0)
 		return NULL;
-- 
2.47.3

