nocfbot-0074-Drop-query_jumble_ignore-from-the-RPR-trailing_al.txt

text/plain

Filename: nocfbot-0074-Drop-query_jumble_ignore-from-the-RPR-trailing_al.txt
Type: text/plain
Part: 70
Message: Re: Row pattern recognition
From 88b2f726080e00fe75368f1cf562107cdae82c25 Mon Sep 17 00:00:00 2001
From: Henson Choi <assam258@gmail.com>
Date: Wed, 10 Jun 2026 18:13:58 +0900
Subject: [PATCH 74/77] Drop query_jumble_ignore from the RPR trailing_alt
 field

trailing_alt is a transient parse flag that splitRPRTrailingAlt always
clears before the pattern tree is finalized, so it is invariably false
by the time a query is jumbled and cannot affect the pg_stat_statements
queryid either way.  The query_jumble_ignore attribute is therefore
unnecessary; drop it and reword the comment accordingly.
---
 src/include/nodes/parsenodes.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 04282811717..3266c11a711 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -636,9 +636,9 @@ typedef struct RPRPatternNode
 	 * Transient parse flag, cleared by splitRPRTrailingAlt before the tree is
 	 * finalized: a glued quantifier such as "*|" is immediately followed by
 	 * the alternation operator '|'.  It is always false in a finalized tree,
-	 * so query_jumble_ignore keeps it off the pg_stat_statements queryid.
+	 * so it has no effect on the pg_stat_statements queryid.
 	 */
-	bool		trailing_alt pg_node_attr(query_jumble_ignore);
+	bool		trailing_alt;
 } RPRPatternNode;
 
 /*
-- 
2.50.1 (Apple Git-155)