diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 2ef9a94cc09171e96abd9c7fae51c48d8b741f10..f04fdf5fcf179d6bafee31bcac2fdb7b2ba72ada 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -2840,7 +2840,7 @@ XLogFlush(XLogRecPtr record)
 
 			/*
 			 * Re-check how far we can now flush the WAL. It's generally not
-			 * safe to call WaitXLogInsetionsToFinish while holding
+			 * safe to call WaitXLogInsertionsToFinish while holding
 			 * WALWriteLock, because an in-progress insertion might need to
 			 * also grab WALWriteLock to make progress. But we know that all
 			 * the insertions up to insertpos have already finished, because