Skip to content

Commit 3879258

Browse files
Fix typos in pgstat.c, reorderbuffer.c and pathnodes.h
Reviewed-by: Thomas Munro <[email protected]> Reviewed-by: Michael Paquier <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 2ed532e commit 3879258

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Diff for: src/backend/postmaster/pgstat.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ PgStat_MsgWal WalStats;
134134
/*
135135
* WAL usage counters saved from pgWALUsage at the previous call to
136136
* pgstat_send_wal(). This is used to calculate how much WAL usage
137-
* happens between pgstat_send_wal() calls, by substracting
137+
* happens between pgstat_send_wal() calls, by subtracting
138138
* the previous counters from the current ones.
139139
*/
140140
static WalUsage prevWalUsage;
@@ -2929,7 +2929,7 @@ pgstat_initialize(void)
29292929
{
29302930
/*
29312931
* Initialize prevWalUsage with pgWalUsage so that pgstat_send_wal() can
2932-
* calculate how much pgWalUsage counters are increased by substracting
2932+
* calculate how much pgWalUsage counters are increased by subtracting
29332933
* prevWalUsage from pgWalUsage.
29342934
*/
29352935
prevWalUsage = pgWalUsage;
@@ -3105,7 +3105,7 @@ pgstat_send_wal(bool force)
31053105

31063106
/*
31073107
* Calculate how much WAL usage counters were increased by
3108-
* substracting the previous counters from the current ones. Fill the
3108+
* subtracting the previous counters from the current ones. Fill the
31093109
* results in WAL stats message.
31103110
*/
31113111
MemSet(&walusage, 0, sizeof(WalUsage));

Diff for: src/backend/replication/logical/reorderbuffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ ReorderBufferCleanupTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
15451545
* streaming or decoding them at PREPARE. Keep the remaining info -
15461546
* transactions, tuplecids, invalidations and snapshots.
15471547
*
1548-
* We additionaly remove tuplecids after decoding the transaction at prepare
1548+
* We additionally remove tuplecids after decoding the transaction at prepare
15491549
* time as we only need to perform invalidation at rollback or commit prepared.
15501550
*
15511551
* 'txn_prepared' indicates that we have decoded the transaction at prepare

Diff for: src/include/nodes/pathnodes.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ typedef struct TidPath
13501350
} TidPath;
13511351

13521352
/*
1353-
* TidRangePath represents a scan by a continguous range of TIDs
1353+
* TidRangePath represents a scan by a contiguous range of TIDs
13541354
*
13551355
* tidrangequals is an implicitly AND'ed list of qual expressions of the form
13561356
* "CTID relop pseudoconstant", where relop is one of >,>=,<,<=.

0 commit comments

Comments
 (0)