nocfbot-0010-Fix-typos-in-RPR-comments.txt

text/plain

Filename: nocfbot-0010-Fix-typos-in-RPR-comments.txt
Type: text/plain
Part: 9
Message: Re: Row pattern recognition
From ce9d9867146c9d1fade273ef5b3a9fe15279200c Mon Sep 17 00:00:00 2001
From: Henson Choi <assam258@gmail.com>
Date: Fri, 20 Mar 2026 21:15:03 +0900
Subject: [PATCH] Fix typos in RPR comments and parser README

Fix "do lopp" to "do loop" and "successfullt" to "successfully" in
nodeWindowAgg.c. Also fix tab-space mix for the parse_rpr.c entry
in parser/README.
---
 src/backend/executor/nodeWindowAgg.c | 7 ++++---
 src/backend/parser/README            | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/backend/executor/nodeWindowAgg.c b/src/backend/executor/nodeWindowAgg.c
index d144fa39375..942f071b457 100644
--- a/src/backend/executor/nodeWindowAgg.c
+++ b/src/backend/executor/nodeWindowAgg.c
@@ -3729,7 +3729,7 @@ ignorenulls_getfuncarginframe(WindowObject winobj, int argno,
 		 * contiguous.  So we can do the check followings safely. Note,
 		 * however, it is possible that a row is out of reduced frame if
 		 * there's a NULL in the middle. So we need to check it in the
-		 * following do lopp.
+		 * following do loop.
 		 */
 		if (seektype == WINDOW_SEEK_HEAD && relpos >= num_reduced_frame)
 			goto out_of_frame;
@@ -4704,7 +4704,8 @@ WinGetFuncArgInFrame(WindowObject winobj, int argno,
 
 	/*
 	 * When RPR is active, the reduced frame changes row by row, so we must
-	 * not advance the mark — doing so would prevent revisiting earlier rows.
+	 * not advance the mark — doing so would prevent revisiting earlier
+	 * rows.
 	 */
 	if (rpr_is_defined(winstate))
 		set_mark = false;
@@ -4739,7 +4740,7 @@ WinGetFuncArgInFrame(WindowObject winobj, int argno,
  * isout: output argument, set to indicate whether target row position
  *		is out of frame (can pass NULL if caller doesn't care about this)
  *
- * Returns 0 if we successfullt got the slot. false if out of frame.
+ * Returns 0 if we successfully got the slot. false if out of frame.
  * (also isout is set)
  */
 static int
diff --git a/src/backend/parser/README b/src/backend/parser/README
index 2baffa9517e..22a5e91c8cf 100644
--- a/src/backend/parser/README
+++ b/src/backend/parser/README
@@ -26,7 +26,7 @@ parse_node.c	create nodes for various structures
 parse_oper.c	handle operators in expressions
 parse_param.c	handle Params (for the cases used in the core backend)
 parse_relation.c support routines for tables and column handling
-parse_rpr.c	    handle Row Pattern Recognition
+parse_rpr.c	handle Row Pattern Recognition
 parse_target.c	handle the result list of the query
 parse_type.c	support routines for data type handling
 parse_utilcmd.c	parse analysis for utility commands (done at execution time)
-- 
2.50.1 (Apple Git-155)