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

Commit0359d83

Browse files
committed
Fix misc typos in comments.
Spotted mostly by Fabien Coelho.Discussion:https://www.postgresql.org/message-id/alpine.DEB.2.21.1901230947050.16643@lancre
1 parent77002ad commit0359d83

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

‎contrib/pgcrypto/pgp-decrypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ pgp_parse_pkt_hdr(PullFilter *src, uint8 *tag, int *len_p, int allow_ctx)
132132
intres;
133133
uint8*p;
134134

135-
/* EOF is normal here, thus wedont use GETBYTE */
135+
/* EOF is normal here, thus wedon't use GETBYTE */
136136
res=pullf_read(src,1,&p);
137137
if (res<0)
138138
returnres;

‎src/backend/access/gin/ginget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ startScanEntry(GinState *ginstate, GinScanEntry entry, Snapshot snapshot)
442442
/*
443443
* Lock the entry leaf page. This is more coarse-grained than
444444
* necessary, because it will conflict with any insertions that
445-
* land on the same leaf page, not only theexacty key we searched
445+
* land on the same leaf page, not only theexact key we searched
446446
* for. But locking an individual tuple would require updating
447447
* that lock whenever it moves because of insertions or vacuums,
448448
* which seems too complicated.

‎src/backend/executor/execParallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1050,7 +1050,7 @@ ExecParallelRetrieveJitInstrumentation(PlanState *planstate,
10501050
MemoryContextAllocZero(planstate->state->es_query_cxt,sizeof(JitInstrumentation));
10511051
combined=planstate->state->es_jit_worker_instr;
10521052

1053-
/*Accummulate all the workers' instrumentations. */
1053+
/*Accumulate all the workers' instrumentations. */
10541054
for (n=0;n<shared_jit->num_workers;++n)
10551055
InstrJitAgg(combined,&shared_jit->jit_instr[n]);
10561056

‎src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2685,7 +2685,7 @@ alter_identity_column_option:
26852685
;
26862686

26872687
PartitionBoundSpec:
2688-
/* a HASH partition*/
2688+
/* a HASH partition*/
26892689
FORVALUESWITH'('hash_partbound')'
26902690
{
26912691
ListCell *lc;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ typedef struct RecordCacheEntry
150150

151151
/*
152152
* To deal with non-anonymous record types that are exchanged by backends
153-
* involved in a parallel query, we also need a sharedverion of the above.
153+
* involved in a parallel query, we also need a sharedversion of the above.
154154
*/
155155
structSharedRecordTypmodRegistry
156156
{

‎src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,12 @@ typedef struct
353353
}CState;
354354

355355
/*
356-
* Cache cell forzipfian_random call
356+
* Cache cell forrandom_zipfian call
357357
*/
358358
typedefstruct
359359
{
360360
/* cell keys */
361-
doubles;/* s - parameter ofzipfan_random function */
361+
doubles;/* s - parameter ofrandom_zipfian function */
362362
int64n;/* number of elements in range (max - min + 1) */
363363

364364
doubleharmonicn;/* generalizedHarmonicNumber(n, s) */

‎src/include/nodes/execnodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ typedef struct ModifyTableState
10781078
*nplanshow many plans are in the array
10791079
*whichplanwhich plan is being executed (0 .. n-1), or a
10801080
*special negative value. See nodeAppend.c.
1081-
*pruningstatedetails required to allow partitions to be
1081+
*prune_statedetails required to allow partitions to be
10821082
*eliminated from the scan, or NULL if not possible.
10831083
*valid_subplansfor runtime pruning, valid appendplans indexes to
10841084
*scan.

‎src/include/port.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ extern pqsigfunc pqsignal_no_restart(int signo, pqsigfunc func);
462462
/* port/quotes.c */
463463
externchar*escape_single_quotes_ascii(constchar*src);
464464

465-
/*port/wait_error.c */
465+
/*common/wait_error.c */
466466
externchar*wait_result_to_str(intexit_status);
467467
externboolwait_result_is_signal(intexit_status,intsignum);
468468
externboolwait_result_is_any_signal(intexit_status,boolinclude_command_not_found);

‎src/pl/plpython/plpy_elog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
242242

243243
*tb_depth=0;
244244
initStringInfo(&tbstr);
245-
/*Mimick Python traceback reporting as close as possible. */
245+
/*Mimic Python traceback reporting as close as possible. */
246246
appendStringInfoString(&tbstr,"Traceback (most recent call last):");
247247
while (tb!=NULL&&tb!=Py_None)
248248
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp