Fix misc typos.
authorHeikki Linnakangas
Sat, 5 Sep 2015 08:35:49 +0000 (11:35 +0300)
committerHeikki Linnakangas
Sat, 5 Sep 2015 08:37:22 +0000 (11:37 +0300)
Oskari Saarenmaa. Backpatch to stable branches where applicable.

contrib/btree_gist/btree_ts.c
contrib/btree_gist/btree_utils_var.c
src/backend/access/common/heaptuple.c
src/backend/access/gin/ginfast.c
src/backend/access/gist/gistproc.c
src/backend/access/heap/heapam.c
src/backend/optimizer/path/costsize.c
src/backend/utils/adt/regproc.c

index aa58489f496a407c1b0b721d679911d7584d665c..cf169c35b97cb3323fb945786b8ca507dda2aa06 100644 (file)
@@ -374,7 +374,7 @@ gbt_ts_penalty(PG_FUNCTION_ARGS)
                newdbl[2];
 
    /*
-    * We are allways using "double" timestamps here. Precision should be good
+    * We are always using "double" timestamps here. Precision should be good
     * enough.
     */
    orgdbl[0] = ((double) origentry->lower);
index c7c6faafc67e76a8aa9263b241d576d93067a2c9..225a945a7e5b038caa7e0e5e11d0db24bad14d74 100644 (file)
@@ -52,7 +52,7 @@ gbt_var_decompress(PG_FUNCTION_ARGS)
    PG_RETURN_POINTER(entry);
 }
 
-/* Returns a better readable representaion of variable key ( sets pointer ) */
+/* Returns a better readable representation of variable key ( sets pointer ) */
 GBT_VARKEY_R
 gbt_var_key_readable(const GBT_VARKEY *k)
 {
index 770cc778b185cf7fb71ac67fd16497cc807ff215..ea4dd24e6b46917254e0b1e40485f70546788812 100644 (file)
@@ -807,7 +807,7 @@ heap_modify_tuple(HeapTuple tuple,
     * repl information, as appropriate.
     *
     * NOTE: it's debatable whether to use heap_deform_tuple() here or just
-    * heap_getattr() only the non-replaced colums.  The latter could win if
+    * heap_getattr() only the non-replaced columns.  The latter could win if
     * there are many replaced columns and few non-replaced ones. However,
     * heap_deform_tuple costs only O(N) while the heap_getattr way would cost
     * O(N^2) if there are many non-replaced columns, so it seems better to
index a0d6ae2a005d4d3be6e3b5f1e647150c2a1faa20..c34de3f160c9aba120857cc6a23d1742fc9234dd 100644 (file)
@@ -881,8 +881,8 @@ ginInsertCleanup(GinState *ginstate,
                                                 * locking */
 
            /*
-            * remove readed pages from pending list, at this point all
-            * content of readed pages is in regular structure
+            * remove read pages from pending list, at this point all
+            * content of read pages is in regular structure
             */
            if (shiftList(index, metabuffer, blkno, stats))
            {
index 3a45781d0e1d816d6cd4503143070a2706a73f1d..a1ba58a23c104c8a7dec982b7098e0644e78f176 100644 (file)
@@ -578,7 +578,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
         * We first consider splits where b is the lower bound of an entry.
         * We iterate through all entries, and for each b, calculate the
         * smallest possible a. Then we consider splits where a is the
-        * uppper bound of an entry, and for each a, calculate the greatest
+        * upper bound of an entry, and for each a, calculate the greatest
         * possible b.
         *
         * In the above example, the first loop would consider splits:
@@ -628,7 +628,7 @@ gist_box_picksplit(PG_FUNCTION_ARGS)
        }
 
        /*
-        * Iterate over upper bound of left group finding greates possible
+        * Iterate over upper bound of left group finding greatest possible
         * lower bound of right group.
         */
        i1 = nentries - 1;
index 9918c226c2883f85ffaa9bddf35c621625b3afae..11542163ea4dc014f5118a98b241fcb75387e888 100644 (file)
@@ -5115,7 +5115,7 @@ l4:
  *
  * The initial tuple is assumed to be already locked.
  *
- * This function doesn't check visibility, it just inconditionally marks the
+ * This function doesn't check visibility, it just unconditionally marks the
  * tuple(s) as locked.  If any tuple in the updated chain is being deleted
  * concurrently (or updated with the key being modified), sleep until the
  * transaction doing it is finished.
@@ -5608,7 +5608,7 @@ heap_prepare_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
            /*
             * NB -- some of these transformations are only valid because
             * we know the return Xid is a tuple updater (i.e. not merely a
-            * locker.) Also note that the only reason we don't explicitely
+            * locker.) Also note that the only reason we don't explicitly
             * worry about HEAP_KEYS_UPDATED is because it lives in t_infomask2
             * rather than t_infomask.
             */
index 054b29ec040466f5eacd63dac17fd22933006882..5a0c48227627d80592abeb0783a213926237e7e0 100644 (file)
@@ -931,7 +931,7 @@ cost_tidscan(Path *path, PlannerInfo *root,
 
    /*
     * The TID qual expressions will be computed once, any other baserestrict
-    * quals once per retrived tuple.
+    * quals once per retrieved tuple.
     */
    cost_qual_eval(&tid_qual_cost, tidquals, root);
 
index 88b1c2b5648a10a9cabab7764b47253625f5fdfc..37817583d358c6f214cd2df9c52b868c945a0aa5 100644 (file)
@@ -698,7 +698,7 @@ format_operator_internal(Oid operator_oid, bool force_qualify)
 
        /*
         * Would this oper be found (given the right args) by regoperatorin?
-        * If not, or if caller explicitely requests it, we need to qualify
+        * If not, or if caller explicitly requests it, we need to qualify
         * it.
         */
        if (force_qualify || !OperatorIsVisible(operator_oid))