Skip to content

Commit 3879258

Browse files
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
1 parent 2ed532e commit 3879258

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 3 additions & 3 deletions
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));

src/backend/replication/logical/reorderbuffer.c

Lines changed: 1 addition & 1 deletion
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

src/include/nodes/pathnodes.h

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy