correct a word

Started by Zizhen Qiao19 days ago4 messages
#1Zizhen Qiao
zizhen_qiao@163.com
1 attachment(s)

Hi Hackers,

Recently, I found a comment error in pgstatfuncs.c . To address this, I've prepared a relevant patch.

For the details,please see the attached patch file.

Looking forward to your reply

Best regards,
--
Zizhen Qiao

Attachments:

v1-0001-fix-a-comment-error.patchapplication/octet-stream; name=v1-0001-fix-a-comment-error.patch; x-cm-securityLevel=0Download
From 5b5df4228f227ccba22ce7756076a37aed8e0bbc Mon Sep 17 00:00:00 2001
From: Zizhen Qiao <zizhen_qiao@163.com>
Date: Wed, 24 Dec 2025 11:10:27 +0800
Subject: [PATCH v1] fix a comment error

---
 src/backend/utils/adt/pgstatfuncs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/utils/adt/pgstatfuncs.c b/src/backend/utils/adt/pgstatfuncs.c
index ef6fffe60b9..2341ac76ae9 100644
--- a/src/backend/utils/adt/pgstatfuncs.c
+++ b/src/backend/utils/adt/pgstatfuncs.c
@@ -1942,7 +1942,7 @@ pg_stat_reset_shared(PG_FUNCTION_ARGS)
 }
 
 /*
- * Reset a statistics for a single object, which may be of current
+ * Reset statistics for a single object, which may be of current
  * database or shared across all databases in the cluster.
  */
 Datum
-- 
2.49.0.windows.1

#2Michael Paquier
michael@paquier.xyz
In reply to: Zizhen Qiao (#1)
Re: correct a word

On Wed, Dec 24, 2025 at 01:34:22PM +0800, Zizhen Qiao wrote:

Recently, I found a comment error in pgstatfuncs.c . To address
this, I've prepared a relevant patch.

Yep, that looks like an improvement here. Thanks.
--
Michael

#3wenhui qiu
qiuwenhuifx@gmail.com
In reply to: Michael Paquier (#2)
Re: correct a word

Hi
Since we're already touching this comment to fix a grammatical issue, it
might be worth slightly rephrasing it as:
* Reset statistics for a single object, which may be the current object

Thanks

On Wed, Dec 24, 2025 at 2:21 PM Michael Paquier <michael@paquier.xyz> wrote:

Show quoted text

On Wed, Dec 24, 2025 at 01:34:22PM +0800, Zizhen Qiao wrote:

Recently, I found a comment error in pgstatfuncs.c . To address
this, I've prepared a relevant patch.

Yep, that looks like an improvement here. Thanks.
--
Michael

#4Michael Paquier
michael@paquier.xyz
In reply to: wenhui qiu (#3)
Re: correct a word

On Wed, Dec 24, 2025 at 03:33:07PM +0800, wenhui qiu wrote:

Since we're already touching this comment to fix a grammatical issue, it
might be worth slightly rephrasing it as:
* Reset statistics for a single object, which may be the current object

Not sure how this improves things. The second part of the sentence
refers to shared objects.
--
Michael