Skip to content

Commit ed529fa

Browse files
committed
Fix misc typos, mostly in comments.
A collection of typos I happened to spot while reading code, as well as grepping for common mistakes. Backpatch to all supported versions, as applicable, to avoid conflicts when backporting other commits in the future.
1 parent 4beb25c commit ed529fa

File tree

18 files changed

+25
-25
lines changed

18 files changed

+25
-25
lines changed

contrib/bloom/blscan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ blendscan(IndexScanDesc scan)
7676
}
7777

7878
/*
79-
* Insert all matching tuples into to a bitmap.
79+
* Insert all matching tuples into a bitmap.
8080
*/
8181
int64
8282
blgetbitmap(IndexScanDesc scan, TIDBitmap *tbm)

doc/src/sgml/protocol.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6573,7 +6573,7 @@ Delete
65736573
<listitem>
65746574
<para>
65756575
Identifies the following TupleData message as a old tuple.
6576-
This field is is present if the table in which the delete has
6576+
This field is present if the table in which the delete has
65776577
happened has REPLICA IDENTITY set to FULL.
65786578
</para>
65796579
</listitem>

doc/src/sgml/spi.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2655,7 +2655,7 @@ SPIPlanPtr SPI_saveplan(SPIPlanPtr <parameter>plan</parameter>)
26552655

26562656
<refnamediv>
26572657
<refname>SPI_register_relation</refname>
2658-
<refpurpose>make a ephemeral named relation available by name in SPI queries</refpurpose>
2658+
<refpurpose>make an ephemeral named relation available by name in SPI queries</refpurpose>
26592659
</refnamediv>
26602660

26612661
<refsynopsisdiv>

src/backend/access/transam/multixact.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,7 +2555,7 @@ SetOffsetVacuumLimit(bool is_startup)
25552555

25562556
/*
25572557
* NB: Have to prevent concurrent truncation, we might otherwise try to
2558-
* lookup a oldestMulti that's concurrently getting truncated away.
2558+
* lookup an oldestMulti that's concurrently getting truncated away.
25592559
*/
25602560
LWLockAcquire(MultiXactTruncationLock, LW_SHARED);
25612561

@@ -2732,7 +2732,7 @@ find_multixact_start(MultiXactId multi, MultiXactOffset *result)
27322732
/*
27332733
* Flush out dirty data, so PhysicalPageExists can work correctly.
27342734
* SimpleLruFlush() is a pretty big hammer for that. Alternatively we
2735-
* could add a in-memory version of page exists, but find_multixact_start
2735+
* could add an in-memory version of page exists, but find_multixact_start
27362736
* is called infrequently, and it doesn't seem bad to flush buffers to
27372737
* disk before truncation.
27382738
*/

src/backend/commands/cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
15651565
* swap_relation_files()), thus relfrozenxid was not updated. That's
15661566
* annoying because a potential reason for doing a VACUUM FULL is a
15671567
* imminent or actual anti-wraparound shutdown. So, now that we can
1568-
* access the new relation using it's indices, update relfrozenxid.
1568+
* access the new relation using its indices, update relfrozenxid.
15691569
* pg_class doesn't have a toast relation, so we don't need to update the
15701570
* corresponding toast relation. Not that there's little point moving all
15711571
* relfrozenxid updates here since swap_relation_files() needs to write to

src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ lreplace:;
10971097
* (but still lock row, even though it may not satisfy estate's
10981098
* snapshot).
10991099
*
1100-
* Returns true if if we're done (with or without an update), or false if
1100+
* Returns true if we're done (with or without an update), or false if
11011101
* the caller must retry the INSERT from scratch.
11021102
*/
11031103
static bool

src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ pg_show_replication_origin_status(PG_FUNCTION_ARGS)
14491449
int i;
14501450
#define REPLICATION_ORIGIN_PROGRESS_COLS 4
14511451

1452-
/* we we want to return 0 rows if slot is set to zero */
1452+
/* we want to return 0 rows if slot is set to zero */
14531453
replorigin_check_prerequisites(false, true);
14541454

14551455
if (rsinfo == NULL || !IsA(rsinfo, ReturnSetInfo))

src/backend/utils/time/snapmgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,8 +1087,8 @@ AtEOXact_Snapshot(bool isCommit, bool resetXmin)
10871087
* it's too late to abort the transaction, and (2) leaving a leaked
10881088
* file around has little real consequence anyway.
10891089
*
1090-
* We also also need to remove the snapshots from RegisteredSnapshots
1091-
* to prevent a warning below.
1090+
* We also need to remove the snapshots from RegisteredSnapshots to
1091+
* prevent a warning below.
10921092
*
10931093
* As with the FirstXactSnapshot, we don't need to free resources of
10941094
* the snapshot iself as it will go away with the memory context.

src/bin/initdb/t/001_initdb.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# To test successful data directory creation with a additional feature, first
1+
# To test successful data directory creation with an additional feature, first
22
# try to elaborate the "successful creation" test instead of adding a test.
33
# Successful initdb consumes much time and I/O.
44

src/bin/pg_upgrade/tablespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ init_tablespaces(void)
3434
* get_tablespace_paths()
3535
*
3636
* Scans pg_tablespace and returns a malloc'ed array of all tablespace
37-
* paths. Its the caller's responsibility to free the array.
37+
* paths. It's the caller's responsibility to free the array.
3838
*/
3939
static void
4040
get_tablespace_paths(void)

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