Skip to content

Commit 6b38717

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 94019c8 commit 6b38717

File tree

25 files changed

+34
-34
lines changed

25 files changed

+34
-34
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
@@ -6773,7 +6773,7 @@ Delete
67736773
<listitem>
67746774
<para>
67756775
Identifies the following TupleData message as a old tuple.
6776-
This field is is present if the table in which the delete has
6776+
This field is present if the table in which the delete has
67776777
happened has REPLICA IDENTITY set to FULL.
67786778
</para>
67796779
</listitem>

doc/src/sgml/spi.sgml

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

26872687
<refnamediv>
26882688
<refname>SPI_register_relation</refname>
2689-
<refpurpose>make a ephemeral named relation available by name in SPI queries</refpurpose>
2689+
<refpurpose>make an ephemeral named relation available by name in SPI queries</refpurpose>
26902690
</refnamediv>
26912691

26922692
<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
@@ -1581,7 +1581,7 @@ finish_heap_swap(Oid OIDOldHeap, Oid OIDNewHeap,
15811581
* swap_relation_files()), thus relfrozenxid was not updated. That's
15821582
* annoying because a potential reason for doing a VACUUM FULL is a
15831583
* imminent or actual anti-wraparound shutdown. So, now that we can
1584-
* access the new relation using it's indices, update relfrozenxid.
1584+
* access the new relation using its indices, update relfrozenxid.
15851585
* pg_class doesn't have a toast relation, so we don't need to update the
15861586
* corresponding toast relation. Not that there's little point moving all
15871587
* relfrozenxid updates here since swap_relation_files() needs to write to

src/backend/commands/explain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3341,7 +3341,7 @@ ExplainPropertyListNested(const char *qlabel, List *data, ExplainState *es)
33413341
* If "numeric" is true, the value is a number (or other value that
33423342
* doesn't need quoting in JSON).
33433343
*
3344-
* If unit is is non-NULL the text format will display it after the value.
3344+
* If unit is non-NULL the text format will display it after the value.
33453345
*
33463346
* This usually should not be invoked directly, but via one of the datatype
33473347
* specific routines ExplainPropertyText, ExplainPropertyInteger, etc.

src/backend/executor/nodeModifyTable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ lreplace:;
13471347
* (but still lock row, even though it may not satisfy estate's
13481348
* snapshot).
13491349
*
1350-
* Returns true if if we're done (with or without an update), or false if
1350+
* Returns true if we're done (with or without an update), or false if
13511351
* the caller must retry the INSERT from scratch.
13521352
*/
13531353
static bool

src/backend/optimizer/plan/planner.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6908,8 +6908,8 @@ apply_scanjoin_target_to_paths(PlannerInfo *root,
69086908
scanjoin_targets_contain_srfs);
69096909

69106910
/*
6911-
* If the relation is partitioned, recurseively apply the same changes to
6912-
* all partitions and generate new Append paths. Since Append is not
6911+
* If the relation is partitioned, recursively apply the same changes to
6912+
* all partitions and generate new Append paths. Since Append is not
69136913
* projection-capable, that might save a separate Result node, and it also
69146914
* is important for partitionwise aggregate.
69156915
*/

src/backend/parser/parse_func.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ LookupFuncWithArgs(ObjectType objtype, ObjectWithArgs *func, bool noError)
21952195
else if (func->args_unspecified)
21962196
ereport(ERROR,
21972197
(errcode(ERRCODE_UNDEFINED_FUNCTION),
2198-
errmsg("could not find a aggregate named \"%s\"",
2198+
errmsg("could not find an aggregate named \"%s\"",
21992199
NameListToString(func->objname))));
22002200
else if (argcount == 0)
22012201
ereport(ERROR,

src/backend/replication/logical/origin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ pg_show_replication_origin_status(PG_FUNCTION_ARGS)
14551455
int i;
14561456
#define REPLICATION_ORIGIN_PROGRESS_COLS 4
14571457

1458-
/* we we want to return 0 rows if slot is set to zero */
1458+
/* we want to return 0 rows if slot is set to zero */
14591459
replorigin_check_prerequisites(false, true);
14601460

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

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