[PATCH] Fix typo "Querys" in a pquery.c comment
Hi,
While reading through tcop/pquery.c I noticed a leftover misspelling in
the comment on ChoosePortalStrategy():
* The list elements can be Querys or PlannedStmts.
The recent typo sweep in b3a95566fc2 ("Fix set of typos and grammar
mistakes") corrected the other occurrences of this kind, but missed this
one. The rest of the tree consistently uses "Queries" as the plural, so
the attached one-line patch brings this comment in line.
Comment-only; no behavior change.
Regards,
Ewan Young
--
Regards,
Ewan Young
On Tue, Nov 24, 2026 at 02:27:48PM +0800, Ewan Young wrote:
The recent typo sweep in b3a95566fc2 ("Fix set of typos and grammar
mistakes") corrected the other occurrences of this kind, but missed this
one. The rest of the tree consistently uses "Queries" as the plural, so
the attached one-line patch brings this comment in line.Comment-only; no behavior change.
This change is wrong to me. "Query" is a structure name in this
context.
--
Michael
On Tue, 24 Nov 2026 at 20:05, Michael Paquier <michael@paquier.xyz> wrote:
This change is wrong to me. "Query" is a structure name in this
context.
Maybe worth making it something like the following if we're going to
get repeated reports about this (I mean as part of your regular typo
sweep)
+ * List elements can be pointers to Query or PlannedStmt objects.
David
On 24 Nov 2026, at 08:22, David Rowley <dgrowleyml@gmail.com> wrote:
On Tue, 24 Nov 2026 at 20:05, Michael Paquier <michael@paquier.xyz> wrote:
This change is wrong to me. "Query" is a structure name in this
context.Maybe worth making it something like the following if we're going to
get repeated reports about this (I mean as part of your regular typo
sweep)+ * List elements can be pointers to Query or PlannedStmt objects.
+1, that's a clear improvement.
--
Daniel Gustafsson
On Tue, Nov 24, 2026 at 3:05 PM Michael Paquier <michael@paquier.xyz> wrote:
On Tue, Nov 24, 2026 at 02:27:48PM +0800, Ewan Young wrote:
The recent typo sweep in b3a95566fc2 ("Fix set of typos and grammar
mistakes") corrected the other occurrences of this kind, but missed this
one. The rest of the tree consistently uses "Queries" as the plural, so
the attached one-line patch brings this comment in line.Comment-only; no behavior change.
This change is wrong to me. "Query" is a structure name in this
context.
Ah, I misunderstood, and you're right, thanks!
--
Michael
--
Regards,
Ewan Young