pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feedfix typos in storing statistics in shared memory
3+ messages / 3 participants
[nested] [flat]
Commits from this thread:
2022-05-24 c9dfe2e83a Remove duplicated words in comments of pgstat.c and pgstat_internal.h
* fix typos in storing statistics in shared memory
@ 2022-05-23 13:46 torikoshia <torikoshia@oss.nttdata.com>
2022-05-23 17:22 ` Re: fix typos in storing statistics in shared memory Nathan Bossart <nathandbossart@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: torikoshia @ 2022-05-23 13:46 UTC (permalink / raw)
To: pgsql-hackers
Hi,
It seems like there are some duplications of 'the' in pgstat.c and
pgstat_internal.h.
Attaching a tiny patch to fix them.
--
Regards,
--
Atsushi Torikoshi
NTT DATA CORPORATION
Attachments:
v1-0001-Fix-duplications-of-the-in-pgstat.c-and-pgstat_in.patch (text/x-diff, 2.1K) download
From fabf3bc5da8e5ebd4f600b6ba762d4413cbdcd6b Mon Sep 17 00:00:00 2001
From: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Date: Mon, 23 May 2022 17:11:54 +0900
Subject: [PATCH v1] Fix duplications of 'the' in pgstat.c and
pgstat_internal.h
---
src/backend/utils/activity/pgstat.c | 4 ++--
src/include/utils/pgstat_internal.h | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/backend/utils/activity/pgstat.c b/src/backend/utils/activity/pgstat.c
index 3c3fd0e9b7..05f2d9e9bd 100644
--- a/src/backend/utils/activity/pgstat.c
+++ b/src/backend/utils/activity/pgstat.c
@@ -32,9 +32,9 @@
* backend-local hashtable (pgStatEntryRefHash) in front of the shared
* hashtable, containing references (PgStat_EntryRef) to shared hashtable
* entries. The shared hashtable only needs to be accessed when no prior
- * reference is found in the local hashtable. Besides pointing to the the
+ * reference is found in the local hashtable. Besides pointing to the
* shared hashtable entry (PgStatShared_HashEntry) PgStat_EntryRef also
- * contains a pointer to the the shared statistics data, as a process-local
+ * contains a pointer to the shared statistics data, as a process-local
* address, to reduce access costs.
*
* The names for structs stored in shared memory are prefixed with
diff --git a/src/include/utils/pgstat_internal.h b/src/include/utils/pgstat_internal.h
index 0eccaea6c1..7d13310fe6 100644
--- a/src/include/utils/pgstat_internal.h
+++ b/src/include/utils/pgstat_internal.h
@@ -296,9 +296,9 @@ static const char *const slru_names[] = {
* values in a copy of the stats data, which is protected by ->lock. See
* pgstat_fetch_stat_(archiver|bgwriter|checkpointer) for the reader side.
*
- * The only exception to that is the the stat_reset_timestamp in these
- * structs, which is protected by ->lock, because it has to be written by
- * another backend while resetting
+ * The only exception to that is the stat_reset_timestamp in these structs,
+ * which is protected by ->lock, because it has to be written by another
+ * backend while resetting
* ----------
*/
--
2.27.0
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: fix typos in storing statistics in shared memory
2022-05-23 13:46 fix typos in storing statistics in shared memory torikoshia <torikoshia@oss.nttdata.com>
@ 2022-05-23 17:22 ` Nathan Bossart <nathandbossart@gmail.com>
2022-05-24 02:02 ` Re: fix typos in storing statistics in shared memory Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 3+ messages in thread
From: Nathan Bossart @ 2022-05-23 17:22 UTC (permalink / raw)
To: torikoshia <torikoshia@oss.nttdata.com>; +Cc: pgsql-hackers
On Mon, May 23, 2022 at 10:46:22PM +0900, torikoshia wrote:
> It seems like there are some duplications of 'the' in pgstat.c and
> pgstat_internal.h.
> Attaching a tiny patch to fix them.
LGTM
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: fix typos in storing statistics in shared memory
2022-05-23 13:46 fix typos in storing statistics in shared memory torikoshia <torikoshia@oss.nttdata.com>
2022-05-23 17:22 ` Re: fix typos in storing statistics in shared memory Nathan Bossart <nathandbossart@gmail.com>
@ 2022-05-24 02:02 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 3+ messages in thread
From: Michael Paquier @ 2022-05-24 02:02 UTC (permalink / raw)
To: Nathan Bossart <nathandbossart@gmail.com>; +Cc: torikoshia <torikoshia@oss.nttdata.com>; pgsql-hackers
On Mon, May 23, 2022 at 10:22:36AM -0700, Nathan Bossart wrote:
> On Mon, May 23, 2022 at 10:46:22PM +0900, torikoshia wrote:
>> It seems like there are some duplications of 'the' in pgstat.c and
>> pgstat_internal.h.
>> Attaching a tiny patch to fix them.
>
> LGTM
Thanks Torikoshi-san, fixed.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-05-24 02:02 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 13:46 fix typos in storing statistics in shared memory torikoshia <torikoshia@oss.nttdata.com>
2022-05-23 17:22 ` Nathan Bossart <nathandbossart@gmail.com>
2022-05-24 02:02 ` Michael Paquier <michael@paquier.xyz>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox