Remove duplicated words in comments of pgstat.c and pgstat_internal.h
authorMichael Paquier <michael@paquier.xyz>
Tue, 24 May 2022 02:00:41 +0000 (11:00 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 24 May 2022 02:00:41 +0000 (11:00 +0900)
Author: Atsushi Torikoshi
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/d00ddbf29f9d09b3a471e64977560de1@oss.nttdata.com

src/backend/utils/activity/pgstat.c
src/include/utils/pgstat_internal.h

index 3c3fd0e9b7fc64ef7593e697b8a40e202a2f03f6..05f2d9e9bd0c714a1059f454e97a5ac20fdb9c2a 100644 (file)
@@ -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
index 0eccaea6c1ab0026a8c36e21cadfd7bdaa5dde2a..9303d05427f116c67f313c0a87f1dfba6dc4de84 100644 (file)
@@ -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.
  * ----------
  */