Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0359d83

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 77002ad commit 0359d83

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

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/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
FOR VALUES WITH '(' 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 shared verion of the above.
153+
* involved in a parallel query, we also need a shared version of the above.
154154
*/
155155
struct SharedRecordTypmodRegistry
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 for zipfian_random call
356+
* Cache cell for random_zipfian call
357357
*/
358358
typedef struct
359359
{
360360
/* cell keys */
361-
double s; /* s - parameter of zipfan_random function */
361+
double s; /* s - parameter of random_zipfian function */
362362
int64 n; /* number of elements in range (max - min + 1) */
363363

364364
double harmonicn; /* 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
* nplans how many plans are in the array
10791079
* whichplan which plan is being executed (0 .. n-1), or a
10801080
* special negative value. See nodeAppend.c.
1081-
* pruningstate details required to allow partitions to be
1081+
* prune_state details required to allow partitions to be
10821082
* eliminated from the scan, or NULL if not possible.
10831083
* valid_subplans for 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
extern char *escape_single_quotes_ascii(const char *src);
464464

465-
/* port/wait_error.c */
465+
/* common/wait_error.c */
466466
extern char *wait_result_to_str(int exit_status);
467467
extern bool wait_result_is_signal(int exit_status, int signum);
468468
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
@@ -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)