Skip to content

Commit 9593113

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 parent 1699e6d commit 9593113

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
int res;
133133
uint8 *p;
134134

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

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
QualCost remote_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 the exacty key we searched
445+
* land on the same leaf page, not only the exact 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 used interchangably.
1876+
* buffer and heap tuples to be used interchangeably.
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 are release, memory is
1479+
* from the underlying storage (i.e. all buffer pins are released, 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
FOR VALUES WITH '(' 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 avoid unecessary random() call
2246+
* log_statement_sample_rate <= 1 and avoid unnecessary 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-
* (See acces/heap/heapam_visibility.c, and note that system catalogs are
11+
* (See access/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 shared verion of the above.
154+
* involved in a parallel query, we also need a shared version of the above.
155155
*/
156156
struct SharedRecordTypmodRegistry
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 for zipfian_random call
410+
* Cache cell for random_zipfian call
411411
*/
412412
typedef struct
413413
{
414414
/* cell keys */
415-
double s; /* s - parameter of zipfan_random function */
415+
double s; /* s - parameter of random_zipfian function */
416416
int64 n; /* number of elements in range (max - min + 1) */
417417

418418
double harmonicn; /* 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-
* unless overriden by hostaddr
603+
* unless overridden 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
* nplans how many plans are in the array
11371137
* whichplan which plan is being executed (0 .. n-1), or a
11381138
* special negative value. See nodeAppend.c.
1139-
* pruningstate details required to allow partitions to be
1139+
* prune_state details required to allow partitions to be
11401140
* eliminated from the scan, or NULL if not possible.
11411141
* valid_subplans for 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
extern char *escape_single_quotes_ascii(const char *src);
525525

526-
/* port/wait_error.c */
526+
/* common/wait_error.c */
527527
extern char *wait_result_to_str(int exit_status);
528528
extern bool wait_result_is_signal(int exit_status, int signum);
529529
extern bool wait_result_is_any_signal(int exit_status, bool include_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)
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