aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgcrypto/pgp-decrypt.c2
-rw-r--r--src/backend/access/gin/ginget.c2
-rw-r--r--src/backend/executor/execParallel.c2
-rw-r--r--src/backend/parser/gram.y2
-rw-r--r--src/backend/utils/cache/typcache.c2
-rw-r--r--src/bin/pgbench/pgbench.c4
-rw-r--r--src/include/nodes/execnodes.h2
-rw-r--r--src/include/port.h2
-rw-r--r--src/pl/plpython/plpy_elog.c2
9 files changed, 10 insertions, 10 deletions
diff --git a/contrib/pgcrypto/pgp-decrypt.c b/contrib/pgcrypto/pgp-decrypt.c
index 7d31e5354b8..96c344c30b7 100644
--- a/contrib/pgcrypto/pgp-decrypt.c
+++ b/contrib/pgcrypto/pgp-decrypt.c
@@ -132,7 +132,7 @@ pgp_parse_pkt_hdr(PullFilter *src, uint8 *tag, int *len_p, int allow_ctx)
int res;
uint8 *p;
- /* EOF is normal here, thus we dont use GETBYTE */
+ /* EOF is normal here, thus we don't use GETBYTE */
res = pullf_read(src, 1, &p);
if (res < 0)
return res;
diff --git a/src/backend/access/gin/ginget.c b/src/backend/access/gin/ginget.c
index 6bfe18c359f..b9de54a717e 100644
--- a/src/backend/access/gin/ginget.c
+++ b/src/backend/access/gin/ginget.c
@@ -442,7 +442,7 @@ restartScanEntry:
/*
* Lock the entry leaf page. This is more coarse-grained than
* necessary, because it will conflict with any insertions that
- * land on the same leaf page, not only the exacty key we searched
+ * land on the same leaf page, not only the exact key we searched
* for. But locking an individual tuple would require updating
* that lock whenever it moves because of insertions or vacuums,
* which seems too complicated.
diff --git a/src/backend/executor/execParallel.c b/src/backend/executor/execParallel.c
index 0fdbd119d9b..0ac12ef26bc 100644
--- a/src/backend/executor/execParallel.c
+++ b/src/backend/executor/execParallel.c
@@ -1050,7 +1050,7 @@ ExecParallelRetrieveJitInstrumentation(PlanState *planstate,
MemoryContextAllocZero(planstate->state->es_query_cxt, sizeof(JitInstrumentation));
combined = planstate->state->es_jit_worker_instr;
- /* Accummulate all the workers' instrumentations. */
+ /* Accumulate all the workers' instrumentations. */
for (n = 0; n < shared_jit->num_workers; ++n)
InstrJitAgg(combined, &shared_jit->jit_instr[n]);
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 689eada51e2..1ab94931f3c 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -2685,7 +2685,7 @@ alter_identity_column_option:
;
PartitionBoundSpec:
- /* a HASH partition*/
+ /* a HASH partition */
FOR VALUES WITH '(' hash_partbound ')'
{
ListCell *lc;
diff --git a/src/backend/utils/cache/typcache.c b/src/backend/utils/cache/typcache.c
index e38fd16eb09..21087d6af75 100644
--- a/src/backend/utils/cache/typcache.c
+++ b/src/backend/utils/cache/typcache.c
@@ -150,7 +150,7 @@ typedef struct RecordCacheEntry
/*
* To deal with non-anonymous record types that are exchanged by backends
- * involved in a parallel query, we also need a shared verion of the above.
+ * involved in a parallel query, we also need a shared version of the above.
*/
struct SharedRecordTypmodRegistry
{
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c
index 41b756c0894..5e2de16cdd0 100644
--- a/src/bin/pgbench/pgbench.c
+++ b/src/bin/pgbench/pgbench.c
@@ -353,12 +353,12 @@ typedef struct
} CState;
/*
- * Cache cell for zipfian_random call
+ * Cache cell for random_zipfian call
*/
typedef struct
{
/* cell keys */
- double s; /* s - parameter of zipfan_random function */
+ double s; /* s - parameter of random_zipfian function */
int64 n; /* number of elements in range (max - min + 1) */
double harmonicn; /* generalizedHarmonicNumber(n, s) */
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h
index 049dc0a3efa..9959c9e31f6 100644
--- a/src/include/nodes/execnodes.h
+++ b/src/include/nodes/execnodes.h
@@ -1078,7 +1078,7 @@ typedef struct ModifyTableState
* nplans how many plans are in the array
* whichplan which plan is being executed (0 .. n-1), or a
* special negative value. See nodeAppend.c.
- * pruningstate details required to allow partitions to be
+ * prune_state details required to allow partitions to be
* eliminated from the scan, or NULL if not possible.
* valid_subplans for runtime pruning, valid appendplans indexes to
* scan.
diff --git a/src/include/port.h b/src/include/port.h
index 9f9253780e7..a9d557b55ca 100644
--- a/src/include/port.h
+++ b/src/include/port.h
@@ -462,7 +462,7 @@ extern pqsigfunc pqsignal_no_restart(int signo, pqsigfunc func);
/* port/quotes.c */
extern char *escape_single_quotes_ascii(const char *src);
-/* port/wait_error.c */
+/* common/wait_error.c */
extern char *wait_result_to_str(int exit_status);
extern bool wait_result_is_signal(int exit_status, int signum);
extern bool wait_result_is_any_signal(int exit_status, bool include_command_not_found);
diff --git a/src/pl/plpython/plpy_elog.c b/src/pl/plpython/plpy_elog.c
index e244104fed7..df5caaba487 100644
--- a/src/pl/plpython/plpy_elog.c
+++ b/src/pl/plpython/plpy_elog.c
@@ -242,7 +242,7 @@ PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
*tb_depth = 0;
initStringInfo(&tbstr);
- /* Mimick Python traceback reporting as close as possible. */
+ /* Mimic Python traceback reporting as close as possible. */
appendStringInfoString(&tbstr, "Traceback (most recent call last):");
while (tb != NULL && tb != Py_None)
{