[PATCH] Fix typo "Querys" in a pquery.c comment

Started by Ewan Youngabout 8 hours ago5 messageshackers
Jump to latest
#1Ewan Young
kdbase.hack@gmail.com

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

Attachments:

t259710_1
v1-0001-Fix-typo-Querys-in-comment-in-pquery.c.patchapplication/octet-stream; name=v1-0001-Fix-typo-Querys-in-comment-in-pquery.c.patchDownload+1-1
#2Michael Paquier
michael@paquier.xyz
In reply to: Ewan Young (#1)
Re: [PATCH] Fix typo "Querys" in a pquery.c comment

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

#3David Rowley
dgrowleyml@gmail.com
In reply to: Michael Paquier (#2)
Re: [PATCH] Fix typo "Querys" in a pquery.c comment

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

#4Daniel Gustafsson
daniel@yesql.se
In reply to: David Rowley (#3)
Re: [PATCH] Fix typo "Querys" in a pquery.c comment

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

#5Ewan Young
kdbase.hack@gmail.com
In reply to: Michael Paquier (#2)
Re: [PATCH] Fix typo "Querys" in a pquery.c comment

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