Skip to content

Commit f97a028

Browse files
committed
Spelling fixes in code comments
From: Josh Soref <jsoref@gmail.com>
1 parent 5ed6fff commit f97a028

File tree

33 files changed

+42
-42
lines changed

33 files changed

+42
-42
lines changed

contrib/pgcrypto/crypt-des.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ des_setkey(const char *key)
416416
&& rawkey1 == old_rawkey1)
417417
{
418418
/*
419-
* Already setup for this key. This optimisation fails on a zero key
419+
* Already setup for this key. This optimization fails on a zero key
420420
* (which is weak and has bad parity anyway) in order to simplify the
421421
* starting conditions.
422422
*/

contrib/spi/timetravel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static EPlan *find_plan(char *ident, EPlan **eplan, int *nplans);
5151
* and stop_date eq INFINITY [ and update_user eq current user ]
5252
* and all other column values as in new tuple, and insert tuple
5353
* with old data and stop_date eq current date
54-
* ELSE - skip updation of tuple.
54+
* ELSE - skip updating of tuple.
5555
* 2. IF a delete affects tuple with stop_date eq INFINITY
5656
* then insert the same tuple with stop_date eq current date
5757
* [ and delete_user eq current user ]

src/backend/access/transam/twophase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ CheckPointTwoPhase(XLogRecPtr redo_horizon)
16121612
*
16131613
* It's also possible to move I/O out of the lock, but on every error we
16141614
* should check whether somebody committed our transaction in different
1615-
* backend. Let's leave this optimisation for future, if somebody will
1615+
* backend. Let's leave this optimization for future, if somebody will
16161616
* spot that this place cause bottleneck.
16171617
*
16181618
* Note that it isn't possible for there to be a GXACT with a

src/backend/commands/copy.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ CopyFrom(CopyState cstate)
24062406
* earlier scan or command. This ensures that if this subtransaction
24072407
* aborts then the frozen rows won't be visible after xact cleanup. Note
24082408
* that the stronger test of exactly which subtransaction created it is
2409-
* crucial for correctness of this optimisation.
2409+
* crucial for correctness of this optimization.
24102410
*/
24112411
if (cstate->freeze)
24122412
{
@@ -2973,7 +2973,7 @@ BeginCopyFrom(ParseState *pstate,
29732973
* the special case of when the default expression is the
29742974
* nextval() of a sequence which in this specific case is
29752975
* known to be safe for use with the multi-insert
2976-
* optimisation. Hence we use this special case function
2976+
* optimization. Hence we use this special case function
29772977
* checker rather than the standard check for
29782978
* contain_volatile_functions().
29792979
*/

src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3182,7 +3182,7 @@ AlterTableGetLockLevel(List *cmds)
31823182
break;
31833183

31843184
/*
3185-
* Changing foreign table options may affect optimisation.
3185+
* Changing foreign table options may affect optimization.
31863186
*/
31873187
case AT_GenericOptions:
31883188
case AT_AlterColumnGenericOptions:

src/backend/foreign/foreign.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ GetExistingLocalJoinPath(RelOptInfo *joinrel)
724724
Path *path = (Path *) lfirst(lc);
725725
JoinPath *joinpath = NULL;
726726

727-
/* Skip parameterised paths. */
727+
/* Skip parameterized paths. */
728728
if (path->param_info != NULL)
729729
continue;
730730

src/backend/optimizer/plan/createplan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4582,7 +4582,7 @@ fix_indexqual_operand(Node *node, IndexOptInfo *index, int indexcol)
45824582
}
45834583
}
45844584

4585-
/* Ooops... */
4585+
/* Oops... */
45864586
elog(ERROR, "index key does not match expected index column");
45874587
return NULL; /* keep compiler quiet */
45884588
}

src/backend/parser/parse_collate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ merge_collation_state(Oid collation,
802802
else if (collation != DEFAULT_COLLATION_OID)
803803
{
804804
/*
805-
* Ooops, we have a conflict. We cannot throw error
805+
* Oops, we have a conflict. We cannot throw error
806806
* here, since the conflict could be resolved by a
807807
* later sibling CollateExpr, or the parent might not
808808
* care about collation anyway. Return enough info to
@@ -821,7 +821,7 @@ merge_collation_state(Oid collation,
821821
if (collation != context->collation)
822822
{
823823
/*
824-
* Ooops, we have a conflict of explicit COLLATE clauses.
824+
* Oops, we have a conflict of explicit COLLATE clauses.
825825
* Here we choose to throw error immediately; that is what
826826
* the SQL standard says to do, and there's no good reason
827827
* to be less strict.

src/backend/parser/parse_param.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ variable_coerce_param_hook(ParseState *pstate, Param *param,
210210
}
211211
else
212212
{
213-
/* Ooops */
213+
/* Oops */
214214
ereport(ERROR,
215215
(errcode(ERRCODE_AMBIGUOUS_PARAMETER),
216216
errmsg("inconsistent types deduced for parameter $%d",

src/backend/regex/regc_pg_locale.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static const unsigned char pg_char_properties[128] = {
224224
* pg_set_regex_collation: set collation for these functions to obey
225225
*
226226
* This is called when beginning compilation or execution of a regexp.
227-
* Since there's no need for re-entrancy of regexp operations, it's okay
227+
* Since there's no need for reentrancy of regexp operations, it's okay
228228
* to store the results in static variables.
229229
*/
230230
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