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
This commit is contained in:
Daniel Gustafsson 2021-07-08 12:45:09 +02:00
parent 2ed532ee8c
commit 387925893e
3 changed files with 5 additions and 5 deletions

View File

@ -134,7 +134,7 @@ PgStat_MsgWal WalStats;
/* /*
* WAL usage counters saved from pgWALUsage at the previous call to * WAL usage counters saved from pgWALUsage at the previous call to
* pgstat_send_wal(). This is used to calculate how much WAL usage * 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. * the previous counters from the current ones.
*/ */
static WalUsage prevWalUsage; static WalUsage prevWalUsage;
@ -2929,7 +2929,7 @@ pgstat_initialize(void)
{ {
/* /*
* Initialize prevWalUsage with pgWalUsage so that pgstat_send_wal() can * 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 from pgWalUsage.
*/ */
prevWalUsage = pgWalUsage; prevWalUsage = pgWalUsage;
@ -3105,7 +3105,7 @@ pgstat_send_wal(bool force)
/* /*
* Calculate how much WAL usage counters were increased by * 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. * results in WAL stats message.
*/ */
MemSet(&walusage, 0, sizeof(WalUsage)); MemSet(&walusage, 0, sizeof(WalUsage));

View File

@ -1545,7 +1545,7 @@ ReorderBufferCleanupTXN(ReorderBuffer *rb, ReorderBufferTXN *txn)
* streaming or decoding them at PREPARE. Keep the remaining info - * streaming or decoding them at PREPARE. Keep the remaining info -
* transactions, tuplecids, invalidations and snapshots. * 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. * time as we only need to perform invalidation at rollback or commit prepared.
* *
* 'txn_prepared' indicates that we have decoded the transaction at prepare * 'txn_prepared' indicates that we have decoded the transaction at prepare

View File

@ -1350,7 +1350,7 @@ typedef struct TidPath
} 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 * tidrangequals is an implicitly AND'ed list of qual expressions of the form
* "CTID relop pseudoconstant", where relop is one of >,>=,<,<=. * "CTID relop pseudoconstant", where relop is one of >,>=,<,<=.