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

Commit9593113

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 parent1699e6d commit9593113

File tree

15 files changed

+16
-16
lines changed

15 files changed

+16
-16
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;

‎contrib/postgres_fdw/postgres_fdw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2771,7 +2771,7 @@ estimate_path_cost_size(PlannerInfo *root,
27712771
run_cost+=cpu_tuple_cost*numGroups;
27722772
run_cost+=ptarget->cost.per_tuple*numGroups;
27732773

2774-
/*Accout for the eval cost of HAVING quals, if any */
2774+
/*Account for the eval cost of HAVING quals, if any */
27752775
if (root->parse->havingQual)
27762776
{
27772777
QualCostremote_cost;

‎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/execExprInterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,7 +1873,7 @@ CheckOpSlotCompatibility(ExprEvalStep *op, TupleTableSlot *slot)
18731873

18741874
/*
18751875
* Should probably fixed at some point, but for now it's easier to allow
1876-
* buffer and heap tuples to be usedinterchangably.
1876+
* buffer and heap tuples to be usedinterchangeably.
18771877
*/
18781878
if (slot->tts_ops==&TTSOpsBufferHeapTuple&&
18791879
op->d.fetch.kind==&TTSOpsHeapTuple)

‎src/backend/executor/execParallel.c

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

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

‎src/backend/executor/execTuples.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ ExecStoreAllNullTuple(TupleTableSlot *slot)
14761476
* possible.
14771477
*
14781478
* If materialize is true, the contents of the slots will be made independent
1479-
* from the underlying storage (i.e. all buffer pins arerelease, memory is
1479+
* from the underlying storage (i.e. all buffer pins arereleased, memory is
14801480
* allocated in the slot's context).
14811481
*
14821482
* If shouldFree is not-NULL it'll be set to true if the returned tuple has

‎src/backend/parser/gram.y

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ alter_identity_column_option:
26772677
;
26782678

26792679
PartitionBoundSpec:
2680-
/* a HASH partition*/
2680+
/* a HASH partition*/
26812681
FORVALUESWITH'('hash_partbound')'
26822682
{
26832683
ListCell *lc;

‎src/backend/tcop/postgres.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ check_log_duration(char *msec_str, bool was_logged)
22432243

22442244
/*
22452245
* Do not log if log_statement_sample_rate = 0. Log a sample if
2246-
* log_statement_sample_rate <= 1 and avoidunecessary random() call
2246+
* log_statement_sample_rate <= 1 and avoidunnecessary random() call
22472247
* if log_statement_sample_rate = 1. But don't compute any of this
22482248
* unless needed.
22492249
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*When a tuple is updated or deleted, our standard visibility rules
99
*consider that it is *still valid* so long as we are in the same command,
1010
*ie, until the next CommandCounterIncrement() or transaction commit.
11-
*(Seeacces/heap/heapam_visibility.c, and note that system catalogs are
11+
*(Seeaccess/heap/heapam_visibility.c, and note that system catalogs are
1212
* generally scanned under the most current snapshot available, rather than
1313
* the transaction snapshot.)At the command boundary, the old tuple stops
1414
*being valid and the new version, if any, becomes valid. Therefore,

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

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

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

‎src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,12 +407,12 @@ typedef struct
407407
}CState;
408408

409409
/*
410-
* Cache cell forzipfian_random call
410+
* Cache cell forrandom_zipfian call
411411
*/
412412
typedefstruct
413413
{
414414
/* cell keys */
415-
doubles;/* s - parameter ofzipfan_random function */
415+
doubles;/* s - parameter ofrandom_zipfian function */
416416
int64n;/* number of elements in range (max - min + 1) */
417417

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

‎src/bin/psql/command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ exec_command_conninfo(PsqlScanState scan_state, bool active_branch)
600600

601601
/*
602602
* If the host is an absolute path, the connection is via socket
603-
* unlessoverriden by hostaddr
603+
* unlessoverridden by hostaddr
604604
*/
605605
if (is_absolute_path(host))
606606
{

‎src/include/nodes/execnodes.h

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

‎src/include/port.h

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

526-
/*port/wait_error.c */
526+
/*common/wait_error.c */
527527
externchar*wait_result_to_str(intexit_status);
528528
externboolwait_result_is_signal(intexit_status,intsignum);
529529
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
@@ -244,7 +244,7 @@ PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
244244

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp