]> granicus.if.org Git - postgresql/commitdiff
Fix typos.
authorAmit Kapila <akapila@postgresql.org>
Sun, 26 May 2019 12:58:18 +0000 (18:28 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sun, 26 May 2019 12:58:18 +0000 (18:28 +0530)
Reported-by: Alexander Lakhin
Author: Alexander Lakhin
Reviewed-by: Amit Kapila and Tom Lane
Discussion: https://postgr.es/m/7208de98-add8-8537-91c0-f8b089e2928c@gmail.com

21 files changed:
contrib/postgres_fdw/postgres_fdw.c
doc/src/sgml/charset.sgml
doc/src/sgml/monitoring.sgml
doc/src/sgml/storage.sgml
src/backend/access/nbtree/nbtinsert.c
src/backend/access/nbtree/nbtutils.c
src/backend/commands/copy.c
src/backend/commands/tablecmds.c
src/backend/executor/execMain.c
src/backend/executor/execTuples.c
src/backend/jit/llvm/llvmjit_deform.c
src/backend/libpq/hba.c
src/backend/postmaster/syslogger.c
src/backend/statistics/mcv.c
src/backend/utils/adt/float.c
src/backend/utils/adt/jsonpath_scan.l
src/backend/utils/misc/guc.c
src/bin/pg_dump/t/002_pg_dump.pl
src/include/statistics/statistics.h
src/include/utils/jsonpath.h
src/interfaces/libpq/pqexpbuffer.c

index 02c81ce7a9584e96f26b1fd0cdfe385b5d1d780b..1b09aa5a017f7ff7a0925ea3b6f3dd6a9f70e626 100644 (file)
@@ -3064,7 +3064,7 @@ estimate_path_cost_size(PlannerInfo *root,
        total_cost += cpu_tuple_cost * retrieved_rows;
 
        /*
-        * If we have LIMIT, we should perfer performing the restriction remotely
+        * If we have LIMIT, we should prefer performing the restriction remotely
         * rather than locally, as the former avoids extra row fetches from the
         * remote that the latter might cause.  But since the core code doesn't
         * account for such fetches when estimating the costs of the local
index 555d1b4ac6316a9d06f1039340a552b9e0116b2b..a2a46c6ab3a0780fe9a472367639a2c8169f425f 100644 (file)
@@ -896,7 +896,7 @@ CREATE COLLATION french FROM "fr-x-icu";
      equal only if they consist of the same byte sequence.  Nondeterministic
      comparison may determine strings to be equal even if they consist of
      different bytes.  Typical situations include case-insensitive comparison,
-     accent-insensitive comparison, as well as comparion of strings in
+     accent-insensitive comparison, as well as comparison of strings in
      different Unicode normal forms.  It is up to the collation provider to
      actually implement such insensitive comparisons; the deterministic flag
      only determines whether ties are to be broken using bytewise comparison.
index a179d6111e4b305ef2dfb871c3975c23cabdfc1d..570ac5e06f723061b6241944efb5c189be3b96d1 100644 (file)
@@ -3556,7 +3556,7 @@ SELECT pg_stat_get_backend_pid(s.backendid) AS pid,
       </entry>
      </row>
      <row>
-      <entry><structfield>current_locked_pid</structfield></entry>
+      <entry><structfield>current_locker_pid</structfield></entry>
       <entry><type>bigint</type></entry>
       <entry>
         Process ID of the locker currently being waited for.
index c4bac87e80e94dbc364a0460f4ae8601276d7f70..1047c77a635c7259c8409cc581af711df96eb8ed 100644 (file)
@@ -960,7 +960,7 @@ data. Empty in ordinary tables.</entry>
   (that is, <structfield>t_natts</structfield> bits altogether). In this list of bits, a
   1 bit indicates not-null, a 0 bit is a null.  When the bitmap is not
   present, all columns are assumed not-null.
-  The object ID is only present if the <firstterm>HEAP_HASOID</firstterm> bit
+  The object ID is only present if the <firstterm>HEAP_HASOID_OLD</firstterm> bit
   is set in <structfield>t_infomask</structfield>.  If present, it appears just
   before the <structfield>t_hoff</structfield> boundary.  Any padding needed to make
   <structfield>t_hoff</structfield> a MAXALIGN multiple will appear between the null
index 2eccc9902364d068dce86e4ca4aebb6b41fdfab6..602f8849d4a45c64ac34672fb46f950eb204dad2 100644 (file)
@@ -663,7 +663,7 @@ _bt_check_unique(Relation rel, BTInsertState insertstate, Relation heapRel,
  *             (In a !heapkeyspace index, there can be multiple pages with the same
  *             high key, where the new tuple could legitimately be placed on.  In
  *             that case, the caller passes the first page containing duplicates,
- *             just like when checkinunique=true.  If that page doesn't have enough
+ *             just like when checkingunique=true.  If that page doesn't have enough
  *             room for the new tuple, this function moves right, trying to find a
  *             legal page that does.)
  *
index 431b8477e9556ccac47bfa10331f3675350828c6..93fab264ae4d5c2dd208b87c17c2ca5796e702aa 100644 (file)
@@ -1344,7 +1344,7 @@ _bt_mark_scankey_required(ScanKey skey)
  * _bt_preprocess_keys(), above, about how this is done.
  *
  * Forward scan callers can pass a high key tuple in the hopes of having
- * us set *continuescanthat to false, and avoiding an unnecessary visit to
+ * us set *continuescan to false, and avoiding an unnecessary visit to
  * the page to the right.
  *
  * scan: index scan descriptor (containing a search-type scankey)
index a8ff30490947df8b28cdc52d2f8ac87d9c03651c..eca0be1ff96d7fff14f14378506a2a32290b58f5 100644 (file)
@@ -2934,7 +2934,7 @@ CopyFrom(CopyState cstate)
        else if (contain_volatile_functions(cstate->whereClause))
        {
                /*
-                * Can't support multi-inserts if there are any volatile funcation
+                * Can't support multi-inserts if there are any volatile function
                 * expressions in WHERE clause.  Similarly to the trigger case above,
                 * such expressions may query the table we're inserting into.
                 */
index c9b8857d3064b23ab46d8b8075d1ee5512d79047..e34d4ccc148071ef66e68a36eded7c110f02960d 100644 (file)
@@ -3574,7 +3574,7 @@ AlterTableGetLockLevel(List *cmds)
 
                                /*
                                 * Removing constraints can affect SELECTs that have been
-                                * optimised assuming the constraint holds true. See also
+                                * optimized assuming the constraint holds true. See also
                                 * CloneFkReferenced.
                                 */
                        case AT_DropConstraint: /* as DROP INDEX */
index 8c8528b1340f7907cd465528f29bdc9f5381bf47..a2bd9a7859b4d020ae5b3a25eb7cdf2042b059ad 100644 (file)
@@ -2432,7 +2432,7 @@ ExecBuildAuxRowMark(ExecRowMark *erm, List *targetlist)
  *     inputslot - tuple for processing - this can be the slot from
  *             EvalPlanQualSlot(), for the increased efficiency.
  *
- * This tests whether the tuple in inputslot still matches the relvant
+ * This tests whether the tuple in inputslot still matches the relevant
  * quals. For that result to be useful, typically the input tuple has to be
  * last row version (otherwise the result isn't particularly useful) and
  * locked (otherwise the result might be out of date). That's typically
index 968e2039d1e8761162230462a0ecf872e9906ff2..f785efae65deed057b0e65ac60ef906d526174c9 100644 (file)
@@ -1602,7 +1602,7 @@ ExecStoreHeapTupleDatum(Datum data, TupleTableSlot *slot)
  * NB: If materialize is true, modifications of the returned tuple are
  * allowed. But it depends on the type of the slot whether such modifications
  * will also affect the slot's contents. While that is not the nicest
- * behaviour, all such modifcations are in the process of being removed.
+ * behaviour, all such modifications are in the process of being removed.
  */
 HeapTuple
 ExecFetchSlotHeapTuple(TupleTableSlot *slot, bool materialize, bool *shouldFree)
@@ -1645,7 +1645,7 @@ ExecFetchSlotHeapTuple(TupleTableSlot *slot, bool materialize, bool *shouldFree)
  *             tuple should be considered as read-only.
  *
  *             If that callback is not supported, it calls copy_minimal_tuple callback
- *             which is expected to return a copy of minimal tuple represnting the
+ *             which is expected to return a copy of minimal tuple representing the
  *             contents of the slot. In this case *shouldFree is set to true,
  *             indicating the caller that it should free the memory consumed by the
  *             minimal tuple. In this case the returned minimal tuple may be written
index 33dc6f630ce2afd3bbd5097c9f77ec4ca8a611aa..835aea83e973de8666c788867f524527592cd6d7 100644 (file)
@@ -202,7 +202,7 @@ slot_compile_deform(LLVMJitContext *context, TupleDesc desc,
                        LLVMBuildBitCast(b,
                                                         v_slot,
                                                         l_ptr(StructMinimalTupleTableSlot),
-                                                        "minimalslotslot");
+                                                        "minimalslot");
                v_slotoffp = LLVMBuildStructGEP(b, v_minimalslot, FIELDNO_MINIMALTUPLETABLESLOT_OFF, "");
                v_tupleheaderp =
                        l_load_struct_gep(b, v_minimalslot, FIELDNO_MINIMALTUPLETABLESLOT_TUPLE,
index 52ac0d78f7385d19b4ce5443d4a0ea03f85c05df..563d2510198b7a010fcb9157a60459fa07918cc8 100644 (file)
@@ -1429,7 +1429,7 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
                                 errmsg("GSSAPI encryption only supports gss, trust, or reject authentication"),
                                 errcontext("line %d of configuration file \"%s\"",
                                                        line_num, HbaFileName)));
-               *err_msg = "GSSAPI encryption only supports gss, trust, or reject authenticaion";
+               *err_msg = "GSSAPI encryption only supports gss, trust, or reject authentication";
                return NULL;
        }
 
index 5e934e9bfda3499a5c7fbf568651f666db867a62..bafd31d22bb85b3a8de268fdcc87306858fa91a4 100644 (file)
@@ -1546,7 +1546,7 @@ CheckLogrotateSignal(void)
 }
 
 /*
- * Remove the file signaling a log rotateion request.
+ * Remove the file signaling a log rotation request.
  */
 void
 RemoveLogrotateSignalFiles(void)
index c8c44a53bf01bf10608fd1788b1904ad875c0d32..d1f0fd55e836d10e0f55a1d6148dca940c5c4636 100644 (file)
@@ -714,7 +714,7 @@ statext_mcv_serialize(MCVList *mcvlist, VacAttrStats **stats)
                                memcpy(ptr, &tmp, info[dim].typlen);
                                ptr += info[dim].typlen;
                        }
-                       else if (info[dim].typlen > 0)  /* pased by reference */
+                       else if (info[dim].typlen > 0)  /* passed by reference */
                        {
                                /* no special alignment needed, treated as char array */
                                memcpy(ptr, DatumGetPointer(value), info[dim].typlen);
index 23649c10000cbe21d278f3737fb9edef7af6d01d..7540ca22efe78f5b07b3a7ad2c662027be2bbec9 100644 (file)
@@ -506,7 +506,7 @@ float8in_internal_opt_error(char *num, char **endptr_p,
 }
 
 /*
- * Interfact to float8in_internal_opt_error() without "have_error" argument.
+ * Interface to float8in_internal_opt_error() without "have_error" argument.
  */
 double
 float8in_internal(char *num, char **endptr_p,
index 84d4f297a89a15ced2922edb4577e568b0bae287..2165ffcc254b60db7f93cbca41c5abec690ffcb2 100644 (file)
@@ -603,7 +603,7 @@ parseUnicode(char *s, int l)
                {
                        while (s[++i] != '}' && i < l)
                                ch = (ch << 4) | hexval(s[i]);
-                       i++;    /* ski p '}' */
+                       i++;    /* skip '}' */
                }
                else            /* parse '\uXXXX' */
                {
index 0516940f749539f8fbb14fca5cc444dc2643422b..1208eb9a6836033a8dd8ee991799d00a204c6f0f 100644 (file)
@@ -8968,7 +8968,7 @@ get_explain_guc_options(int *num)
                                break;
 
                        default:
-                               elog(ERROR, "unexcpected GUC type: %d", conf->vartype);
+                               elog(ERROR, "unexpected GUC type: %d", conf->vartype);
                }
 
                /* skip GUC variables that match the built-in default */
index cb9181e15690eb46b5e6dfbd6bbda6edb05f37e8..ea6283c51a60b3ee4510ad704976c41c57c5a968 100644 (file)
@@ -3131,7 +3131,7 @@ my %tests = (
        # AM occurs. To achieve that we create a table with the standard
        # AM, test AM, standard AM. That guarantees that there needs to be
        # a SET interspersed.  Then use a regex that prevents interspersed
-       # SET ...; statements, followed by the exptected CREATE TABLE. Not
+       # SET ...; statements, followed by the expected CREATE TABLE. Not
        # pretty, but seems hard to do better in this framework.
        'CREATE TABLE regress_pg_dump_table_am' => {
                create_order => 12,
index d0ab04c0ae92fe8687a5db018308200c20588f72..cb7bc630e98b3fab55997bbc5fc3178c7624309b 100644 (file)
@@ -82,7 +82,7 @@ typedef struct MCVItem
        Datum      *values;                     /* item values */
 } MCVItem;
 
-/* multivariate MCV list - essentally an array of MCV items */
+/* multivariate MCV list - essentially an array of MCV items */
 typedef struct MCVList
 {
        uint32          magic;                  /* magic constant marker */
index 0732fe2ba99a8712471305360c2ac081228dd424..3e9d60cb760a0a4a642f5098f4d2911c07cd3322 100644 (file)
@@ -96,7 +96,7 @@ typedef enum JsonPathItemType
  * Support functions to parse/construct binary value.
  * Unlike many other representation of expression the first/main
  * node is not an operation but left operand of expression. That
- * allows to implement cheep follow-path descending in jsonb
+ * allows to implement cheap follow-path descending in jsonb
  * structure and then execute operator with right operand
  */
 
index b3c53b0cda3c99ee14b762c6d199e052ddcc0d97..a9af6f8d837ee6bd0943bf403dcaf033f6d0cb49 100644 (file)
@@ -37,7 +37,7 @@
 /* All "broken" PQExpBuffers point to this string. */
 static const char oom_buffer[1] = "";
 
-/* Need a char * for unconstify() compatiblity */
+/* Need a char * for unconstify() compatibility */
 static const char *oom_buffer_ptr = oom_buffer;
 
 static bool appendPQExpBufferVA(PQExpBuffer str, const char *fmt, va_list args) pg_attribute_printf(2, 0);