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

contrib/btree_gist/btree_ts.c
contrib/btree_gist/btree_utils_var.c
contrib/cube/cube.c
doc/src/sgml/sources.sgml
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/access/heap/rewriteheap.c
src/backend/optimizer/path/costsize.c
src/backend/utils/adt/regproc.c

index b9c2b49ef3ccc5009a4241881def59ffd85ea39a..88ce35b2cb61d0f727f0a8e2b77380077db09cfb 100644 (file)
@@ -362,7 +362,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 b7dd060a944ba237a8ab48e55f3a6ba5f2cb9c72..c4340223c0f288e438aa8c97a087cc8281f98dd6 100644 (file)
@@ -51,7 +51,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 b0305ef431dca7a23272f6a98a6096ff3feae504..f8c80eded2b6fd84d7e420adb642ddd0b9a4a482 100644 (file)
@@ -819,7 +819,7 @@ cube_inter(PG_FUNCTION_ARGS)
                                    Max(LL_COORD(b, i), UR_COORD(b, i))
            );
    }
-   /* continue on the higher dimemsions only present in 'a' */
+   /* continue on the higher dimensions only present in 'a' */
    for (; i < DIM(a); i++)
    {
        result->x[i] = Max(0,
index aa2080742d48329d277e9766f88f9d4348b7980d..d6461ec3f2a50d16c53e5c40cbd87dae4b126205 100644 (file)
@@ -251,7 +251,7 @@ ereport(ERROR,
    
    
     
-     errdetail_log_plural(const char *fmt_singuar, const char
+     errdetail_log_plural(const char *fmt_singular, const char
      *fmt_plural, unsigned long n, ...) is like
      errdetail_log, but with support for various plural forms of
      the message.
index 009ebe7a1cbfb0d5fb4f76578e7831ae6b2dd863..9b1f358b3878fa9bc1c750905d8efeb86fa29f7c 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 09c3e39bf3b9156df60c4b03828fe812f3546f85..7fc55cf373be6774ffd21b26715b59007cc3af31 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 db0bec6e3e566217d36b57d5a9ab1091f7368c38..9517be824783ecde795893aab66869bd778e693a 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 2e3b9d2c2b78a6f354f529408c1ebaeebdab88f5..badbea4be51a659181d1a17070c12edf97023580 100644 (file)
@@ -5311,7 +5311,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.
@@ -5798,7 +5798,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 951f3f1a489a1b173d507109e15574655ec981dd..7672a075c776e65130fe04247d8e1a0a7904c92d 100644 (file)
@@ -763,9 +763,9 @@ raw_heap_insert(RewriteState state, HeapTuple tup)
  *
  * Crash-Safety: This module diverts from the usual patterns of doing WAL
  * since it cannot rely on checkpoint flushing out all buffers and thus
- * waiting for exlusive locks on buffers. Usually the XLogInsert() covering
+ * waiting for exclusive locks on buffers. Usually the XLogInsert() covering
  * buffer modifications is performed while the buffer(s) that are being
- * modified are exlusively locked guaranteeing that both the WAL record and
+ * modified are exclusively locked guaranteeing that both the WAL record and
  * the modified heap are on either side of the checkpoint. But since the
  * mapping files we log aren't in shared_buffers that interlock doesn't work.
  *
index f1bb787949cc2ed83c295b1379a394e9976e7881..6946530ed1b4b2e94bc57fa54368b34daae1bb5d 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 c0314ee53227c39a6b3ac9b4b5d14b69203f2371..1512e9ddc6d6c9df189edcb038a535a0eb26b26d 100644 (file)
@@ -819,7 +819,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))