Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf97a028

Browse files
committed
Spelling fixes in code comments
From: Josh Soref <jsoref@gmail.com>
1 parent5ed6fff commitf97a028

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. Thisoptimisation fails on a zero key
419+
* Already setup for this key. Thisoptimization 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 - skipupdation of tuple.
54+
*ELSE - skipupdating 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 thisoptimisation for future, if somebody will
1615+
* backend. Let's leave thisoptimization 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 thisoptimisation.
2409+
* crucial for correctness of thisoptimization.
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 affectoptimisation.
3185+
* Changing foreign table options may affectoptimization.
31863186
*/
31873187
caseAT_GenericOptions:
31883188
caseAT_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-
/* Skipparameterised paths. */
727+
/* Skipparameterized 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
returnNULL;/* 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
elseif (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 forre-entrancy of regexp operations, it's okay
227+
* Since there's no need forreentrancy of regexp operations, it's okay
228228
* to store the results in static variables.
229229
*/
230230
void

‎src/backend/storage/ipc/procarray.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ ProcArrayAdd(PGPROC *proc)
280280
if (arrayP->numProcs >=arrayP->maxProcs)
281281
{
282282
/*
283-
*Ooops, no room. (This really shouldn't happen, since there is a
283+
*Oops, no room. (This really shouldn't happen, since there is a
284284
* fixed supply of PGPROC structs too, and so we should have failed
285285
* earlier.)
286286
*/
@@ -370,7 +370,7 @@ ProcArrayRemove(PGPROC *proc, TransactionId latestXid)
370370
}
371371
}
372372

373-
/*Ooops */
373+
/*Oops */
374374
LWLockRelease(ProcArrayLock);
375375

376376
elog(LOG,"failed to find proc %p in ProcArray",proc);

‎src/backend/storage/lmgr/lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ SetupLockInTable(LockMethod lockMethodTable, PGPROC *proc,
11251125
&found);
11261126
if (!proclock)
11271127
{
1128-
/*Ooops, not enough shmem for the proclock */
1128+
/*Oops, not enough shmem for the proclock */
11291129
if (lock->nRequested==0)
11301130
{
11311131
/*
@@ -4046,7 +4046,7 @@ lock_twophase_recover(TransactionId xid, uint16 info,
40464046
&found);
40474047
if (!proclock)
40484048
{
4049-
/*Ooops, not enough shmem for the proclock */
4049+
/*Oops, not enough shmem for the proclock */
40504050
if (lock->nRequested==0)
40514051
{
40524052
/*

‎src/backend/tsearch/dict_thesaurus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
/*
26-
*Temporay we use TSLexeme.flags for inner use...
26+
*Temporary we use TSLexeme.flags for inner use...
2727
*/
2828
#defineDT_USEASIS0x1000
2929

‎src/backend/utils/adt/selfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4312,7 +4312,7 @@ get_restriction_variable(PlannerInfo *root, List *args, int varRelid,
43124312
return true;
43134313
}
43144314

4315-
/*Ooops, clause has wrong structure (probably var op var) */
4315+
/*Oops, clause has wrong structure (probably var op var) */
43164316
ReleaseVariableStats(*vardata);
43174317
ReleaseVariableStats(rdata);
43184318

‎src/backend/utils/cache/lsyscache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2332,7 +2332,7 @@ get_typavgwidth(Oid typid, int32 typmod)
23322332
}
23332333

23342334
/*
2335-
*Ooops, we have no idea ... wild guess time.
2335+
*Oops, we have no idea ... wild guess time.
23362336
*/
23372337
return32;
23382338
}

‎src/backend/utils/cache/plancache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ RevalidateCachedQuery(CachedPlanSource *plansource)
621621
returnNIL;
622622
}
623623

624-
/*Ooops, the race case happened. Release useless locks. */
624+
/*Oops, the race case happened. Release useless locks. */
625625
AcquirePlannerLocks(plansource->query_list, false);
626626
}
627627

@@ -845,7 +845,7 @@ CheckCachedPlan(CachedPlanSource *plansource)
845845
return true;
846846
}
847847

848-
/*Ooops, the race case happened. Release useless locks. */
848+
/*Oops, the race case happened. Release useless locks. */
849849
AcquireExecutorLocks(plan->stmt_list, false);
850850
}
851851

‎src/backend/utils/error/elog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ errstart(int elevel, const char *filename, int lineno,
318318
*/
319319
if (ErrorContext==NULL)
320320
{
321-
/*Ooops, hard crash time; very little we can do safely here */
321+
/*Oops, hard crash time; very little we can do safely here */
322322
write_stderr("error occurred at %s:%d before error message processing is available\n",
323323
filename ?filename :"(unknown file)",lineno);
324324
exit(2);
@@ -331,7 +331,7 @@ errstart(int elevel, const char *filename, int lineno,
331331
if (recursion_depth++>0&&elevel >=ERROR)
332332
{
333333
/*
334-
*Ooops, error during error processing. Clear ErrorContext as
334+
*Oops, error during error processing. Clear ErrorContext as
335335
* discussed at top of file. We will not return to the original
336336
* error's reporter or handler, so we don't need it.
337337
*/
@@ -1302,7 +1302,7 @@ elog_start(const char *filename, int lineno, const char *funcname)
13021302
/* Make sure that memory context initialization has finished */
13031303
if (ErrorContext==NULL)
13041304
{
1305-
/*Ooops, hard crash time; very little we can do safely here */
1305+
/*Oops, hard crash time; very little we can do safely here */
13061306
write_stderr("error occurred at %s:%d before error message processing is available\n",
13071307
filename ?filename :"(unknown file)",lineno);
13081308
exit(2);

‎src/backend/utils/fmgr/fmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ struct fmgr_security_definer_cache
877877
* To execute a call, we temporarily replace the flinfo with the cached
878878
* and looked-up one, while keeping the outer fcinfo (which contains all
879879
* the actual arguments, etc.) intact. This is not re-entrant, but then
880-
* the fcinfo itself can't be usedre-entrantly anyway.
880+
* the fcinfo itself can't be usedreentrantly anyway.
881881
*/
882882
staticDatum
883883
fmgr_security_definer(PG_FUNCTION_ARGS)

‎src/backend/utils/hash/dynahash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
* when combined with HASH_DEBUG, these are displayed by hdestroy().
7373
*
7474
* Problems & fixes to ejp@ausmelb.oz. WARNING: relies on pre-processor
75-
* concatenation property, in probably unnecessary code 'optimisation'.
75+
* concatenation property, in probably unnecessary code 'optimization'.
7676
*
7777
* Modified margo@postgres.berkeley.edu February 1990
7878
*added multiple table interface

‎src/backend/utils/misc/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ If a show_hook is provided, it points to a function of the signature
114114
This hook allows variable-specific computation of the value displayed
115115
by SHOW (and other SQL features for showing GUC variable values).
116116
The return value can point to a static buffer, since show functions are
117-
not usedre-entrantly.
117+
not usedreentrantly.
118118

119119

120120
Saving/Restoring GUC Variable Values

‎src/bin/pg_dump/parallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ struct ParallelSlot
9292

9393
/* These fields are valid if workerStatus == WRKR_WORKING: */
9494
ParallelCompletionPtrcallback;/* function to call on completion */
95-
void*callback_data;/*passthru data for it */
95+
void*callback_data;/*passthrough data for it */
9696

9797
ArchiveHandle*AH;/* Archive data worker is using */
9898

‎src/fe_utils/string_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fmtQualifiedId(int remoteVersion, const char *schema, const char *id)
173173
* returned by PQserverVersion()) as a string. This exists mainly to
174174
* encapsulate knowledge about two-part vs. three-part version numbers.
175175
*
176-
* Forre-entrancy, caller must supply the buffer the string is put in.
176+
* Forreentrancy, caller must supply the buffer the string is put in.
177177
* Recommended size of the buffer is 32 bytes.
178178
*
179179
* Returns address of 'buf', as a notational convenience.

‎src/include/utils/jsonapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern JsonLexContext *makeJsonLexContextCstringLen(char *json,
127127
/*
128128
* Utility function to check if a string is a valid JSON number.
129129
*
130-
* stragrument does not need to be nul-terminated.
130+
* strargument does not need to be nul-terminated.
131131
*/
132132
externboolIsValidJsonNumber(constchar*str,intlen);
133133

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ PQconnectPoll(PGconn *conn)
21362136
}/* loop over addresses */
21372137

21382138
/*
2139-
*Ooops, no more addresses. An appropriate error message is
2139+
*Oops, no more addresses. An appropriate error message is
21402140
* already set up, so just set the right status.
21412141
*/
21422142
gotoerror_return;

‎src/interfaces/libpq/fe-exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ PQputCopyEnd(PGconn *conn, const char *errormsg)
23342334
{
23352335
if (errormsg)
23362336
{
2337-
/*Ooops, no way to do this in 2.0 */
2337+
/*Oops, no way to do this in 2.0 */
23382338
printfPQExpBuffer(&conn->errorMessage,
23392339
libpq_gettext("function requires at least protocol version 3.0\n"));
23402340
return-1;

‎src/pl/plperl/ppport.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/pl/plpgsql/src/pl_exec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5543,7 +5543,7 @@ exec_eval_simple_expr(PLpgSQL_execstate *estate,
55435543
exec_check_rw_parameter(expr,expr->rwparam);
55445544
if (expr->expr_simple_expr==NULL)
55455545
{
5546-
/*Ooops, release refcount and fail */
5546+
/*Oops, release refcount and fail */
55475547
ReleaseCachedPlan(cplan, true);
55485548
return false;
55495549
}

‎src/pl/plpython/plpy_procedure.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ PLy_procedure_get(Oid fn_oid, Oid fn_rel, bool is_trigger)
122122
}
123123
PG_CATCH();
124124
{
125-
/* Do not leave anuninitialised entry in the cache */
125+
/* Do not leave anuninitialized entry in the cache */
126126
if (use_cache)
127127
hash_search(PLy_procedure_cache,&key,HASH_REMOVE,NULL);
128128
PG_RE_THROW();

‎src/pl/plpython/plpy_typeio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ PLyObject_ToComposite(PLyObToDatum *arg, int32 typmod, PyObject *plrv, bool inar
827827

828828
/*
829829
* This will set up the dummy PLyTypeInfo's output conversion routines,
830-
* since we left is_rowtype as 2. A futureoptimisation could be caching
830+
* since we left is_rowtype as 2. A futureoptimization could be caching
831831
* that info instead of looking it up every time a tuple is returned from
832832
* the function.
833833
*/

‎src/test/regress/expected/errors.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--
22
-- ERRORS
33
--
4-
-- bad in postquel, but ok inpostsql
4+
-- bad in postquel, but ok inPostgreSQL
55
select 1;
66
?column?
77
----------

‎src/test/regress/expected/groupingsets.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ select *
375375
ERROR: aggregate functions are not allowed in FROM clause of their own query level
376376
LINE 3: lateral (select a, b, sum(v.x) from gstest_data(v.x) ...
377377
^
378-
-- min maxoptimisation should still work with GROUP BY ()
378+
-- min maxoptimization should still work with GROUP BY ()
379379
explain (costs off)
380380
select min(unique1) from tenk1 GROUP BY ();
381381
QUERY PLAN

‎src/test/regress/sql/errors.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- ERRORS
33
--
44

5-
-- bad in postquel, but ok inpostsql
5+
-- bad in postquel, but ok inPostgreSQL
66
select1;
77

88

‎src/test/regress/sql/groupingsets.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ select *
140140
from (values (1),(2)) v(x),
141141
lateral (select a, b,sum(v.x)from gstest_data(v.x)group by rollup (a,b)) s;
142142

143-
-- min maxoptimisation should still work with GROUP BY ()
143+
-- min maxoptimization should still work with GROUP BY ()
144144
explain (costs off)
145145
selectmin(unique1)from tenk1GROUP BY ();
146146

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp