]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix misc typos in comments.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 23 Jan 2019 11:39:00 +0000 (13:39 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 23 Jan 2019 11:43:41 +0000 (13:43 +0200)
Spotted mostly by Fabien Coelho.

Discussion: https://www.postgresql.org/message-id/alpine.DEB.2.21.1901230947050.16643@lancre

contrib/pgcrypto/pgp-decrypt.c
src/backend/access/gin/ginget.c
src/backend/executor/execParallel.c
src/backend/parser/gram.y
src/backend/utils/cache/typcache.c
src/bin/pgbench/pgbench.c
src/include/nodes/execnodes.h
src/include/port.h
src/pl/plpython/plpy_elog.c

index 7d31e5354b8f236216f476742d2c9c0aa4376517..96c344c30b786e5db17ab5f599094f55934078c8 100644 (file)
@@ -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;
index 6bfe18c359fe92b6ebcd244c7ccd52586306cd22..b9de54a717e30ea03fb7b15311839824b4d96e66 100644 (file)
@@ -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.
index 0fdbd119d9bca92a3df4f81dba2376a04c236420..0ac12ef26bc11c42b735f342f7750efc91451b30 100644 (file)
@@ -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]);
 
index 689eada51e2b092de7a10ed0979dea00b312ce3c..1ab94931f3cf64fcc64fa64ce5f0129fb5ba3d31 100644 (file)
@@ -2685,7 +2685,7 @@ alter_identity_column_option:
                ;
 
 PartitionBoundSpec:
-                       /* a HASH partition*/
+                       /* a HASH partition */
                        FOR VALUES WITH '(' hash_partbound ')'
                                {
                                        ListCell   *lc;
index e38fd16eb09dbe0c708e5f791f6de4bc799d5d5d..21087d6af75b75d59c4b0b358afb7d90a8062fd0 100644 (file)
@@ -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
 {
index 41b756c0894288353bee7badaa7ffeb5995e2f42..5e2de16cdd01585c6728fe003064bf6691a402cd 100644 (file)
@@ -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) */
index 049dc0a3efa46468b23c46ada361048b9ec39285..9959c9e31f63e304801b595065e2f8069ef76b0b 100644 (file)
@@ -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.
index 9f9253780e78fabb93a5641da63685025e51f2ca..a9d557b55cab17ccb926c434e67a7efd2271fb26 100644 (file)
@@ -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);
index e244104fed7009bd978964be3f4b60d9f3a6e07e..df5caaba487b3c6ddb8e3b599e7bc7f132b7eccc 100644 (file)
@@ -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)
        {