Fix typos in pgstat.c, reorderbuffer.c and pathnodes.h
authorDaniel Gustafsson <[email protected]>
Thu, 8 Jul 2021 10:45:09 +0000 (12:45 +0200)
committerDaniel Gustafsson <[email protected]>
Thu, 8 Jul 2021 10:45:09 +0000 (12:45 +0200)
Reviewed-by: Thomas Munro <[email protected]>
Reviewed-by: Michael Paquier <[email protected]>
Discussion: https://postgr.es/m/50250765-5B87-4AD7-9770-7FCED42A6175@yesql.se

src/backend/postmaster/pgstat.c
src/backend/replication/logical/reorderbuffer.c
src/include/nodes/pathnodes.h

index ce8888cc3007406801fea569a59c8b503aa74106..11702f2a8040ae7dc9e91f17d002aad721fbaf24 100644 (file)
@@ -134,7 +134,7 @@ PgStat_MsgWal WalStats;
 /*
  * WAL usage counters saved from pgWALUsage at the previous call to
  * pgstat_send_wal(). This is used to calculate how much WAL usage
- * happens between pgstat_send_wal() calls, by substracting
+ * happens between pgstat_send_wal() calls, by subtracting
  * the previous counters from the current ones.
  */
 static WalUsage prevWalUsage;
@@ -2929,7 +2929,7 @@ pgstat_initialize(void)
 {
    /*
     * Initialize prevWalUsage with pgWalUsage so that pgstat_send_wal() can
-    * calculate how much pgWalUsage counters are increased by substracting
+    * calculate how much pgWalUsage counters are increased by subtracting
     * prevWalUsage from pgWalUsage.
     */
    prevWalUsage = pgWalUsage;
@@ -3105,7 +3105,7 @@ pgstat_send_wal(bool force)
 
        /*
         * Calculate how much WAL usage counters were increased by
-        * substracting the previous counters from the current ones. Fill the
+        * subtracting the previous counters from the current ones. Fill the
         * results in WAL stats message.
         */
        MemSet(&walusage, 0, sizeof(WalUsage));
index b8c5e2a44ecf5dda113a49de6342bc770f5cf5fc..1b4f4a528aafd6cc439517d6da1cfcf60e7af6c3 100644 (file)
@@ -1545,7 +1545,7 @@ ReorderBufferCleanupTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
  * streaming or decoding them at PREPARE. Keep the remaining info -
  * transactions, tuplecids, invalidations and snapshots.
  *
- * We additionaly remove tuplecids after decoding the transaction at prepare
+ * We additionally remove tuplecids after decoding the transaction at prepare
  * time as we only need to perform invalidation at rollback or commit prepared.
  *
  * 'txn_prepared' indicates that we have decoded the transaction at prepare
index b7b2817a5de8595fd6c9a40f9fe29ca60ea499a4..bebf774818fa6e4b9244eb09495630c227555f61 100644 (file)
@@ -1350,7 +1350,7 @@ typedef struct TidPath
 } TidPath;
 
 /*
- * TidRangePath represents a scan by a continguous range of TIDs
+ * TidRangePath represents a scan by a contiguous range of TIDs
  *
  * tidrangequals is an implicitly AND'ed list of qual expressions of the form
  * "CTID relop pseudoconstant", where relop is one of >,>=,<,<=.