summaryrefslogtreecommitdiff
path: root/src/backend/postmaster
diff options
context:
space:
mode:
authorDaniel Gustafsson2021-07-08 10:45:09 +0000
committerDaniel Gustafsson2021-07-08 10:45:09 +0000
commit387925893edf2a3a30a8ddf2c6474d8a7eb056a5 (patch)
treefa82b0bc5979bf19798d0ce63cba30b42e22134c /src/backend/postmaster
parent2ed532ee8c474e9767e76e1f3251cc3a0224358c (diff)
Fix typos in pgstat.c, reorderbuffer.c and pathnodes.h
Reviewed-by: Thomas Munro <thomas.munro@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://postgr.es/m/50250765-5B87-4AD7-9770-7FCED42A6175@yesql.se
Diffstat (limited to 'src/backend/postmaster')
-rw-r--r--src/backend/postmaster/pgstat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index ce8888cc300..11702f2a804 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -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));