Fix typos in comments, code and documentation
authorMichael Paquier <[email protected]>
Tue, 3 Jan 2023 07:26:30 +0000 (16:26 +0900)
committerMichael Paquier <[email protected]>
Tue, 3 Jan 2023 07:26:30 +0000 (16:26 +0900)
While on it, newlines are removed from the end of two elog() strings.
The others are simple grammar mistakes.  One comment in pg_upgrade
referred incorrectly to sequences since a7e5457.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20221230231257[email protected]
Backpatch-through: 11

doc/src/sgml/parallel.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/sources.sgml
src/backend/access/common/bufmask.c
src/backend/access/spgist/spgutils.c
src/backend/jit/llvm/llvmjit.c
src/backend/optimizer/util/tlist.c
src/backend/utils/adt/ruleutils.c
src/bin/pg_upgrade/info.c
src/test/regress/expected/expressions.out
src/test/regress/sql/expressions.sql

index 3e8326d46c8ebc79415d2bb89dbbc359734269f3..2b2c8cbffd6c4f0ff8882839e24ffb1eae9c2710 100644 (file)
@@ -128,7 +128,7 @@ EXPLAIN SELECT * FROM pgbench_accounts WHERE filler LIKE '%x%';
 
   <para>
     In addition, the system must not be running in single-user mode.  Since
-    the entire database system is running in single process in this situation,
+    the entire database system is running as a single process in this situation,
     no background workers will be available.
   </para>
 
index 8933bb0d7776b0725cda03e503a4c312a31da0a2..6292c4774a5abcf87cda58e95d6a754d81ae02a3 100644 (file)
@@ -975,7 +975,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
       constraint. This does not work, however, if any of the partition keys
       is an expression and the partition does not accept
       <literal>NULL</literal> values. If attaching a list partition that will
-      not accept <literal>NULL</literal> values, also add
+      not accept <literal>NULL</literal> values, also add a
       <literal>NOT NULL</literal> constraint to the partition key column,
       unless it's an expression.
      </para>
index e6ae02f2af707e8ad6d776dc306999e4b3e22f7d..4ee99853b23216f5d3354c70641794c1bcccffe0 100644 (file)
@@ -929,8 +929,8 @@ BETTER: unrecognized node type: 42
    <simplesect>
     <title>Function-Like Macros and Inline Functions</title>
     <para>
-     Both, macros with arguments and <literal>static inline</literal>
-     functions, may be used. The latter are preferable if there are
+     Both macros with arguments and <literal>static inline</literal>
+     functions may be used. The latter are preferable if there are
      multiple-evaluation hazards when written as a macro, as e.g., the
      case with
 <programlisting>
index 003a0befb25d8e0d3cfe03afb8d8fd280a54d79a..409acecf42af809d1dee672d950a3a15a63325ff 100644 (file)
@@ -78,7 +78,7 @@ mask_unused_space(Page page)
    if (pd_lower > pd_upper || pd_special < pd_upper ||
        pd_lower < SizeOfPageHeaderData || pd_special > BLCKSZ)
    {
-       elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u\n",
+       elog(ERROR, "invalid page pd_lower %u pd_upper %u pd_special %u",
             pd_lower, pd_upper, pd_special);
    }
 
index 4484805192c19e49afcdd3fe096d20c09e8d8100..a76c52aa94cdffc04b9a4c768a23f6998dd137a1 100644 (file)
@@ -1302,7 +1302,7 @@ spgproperty(Oid index_oid, int attno,
    /*
     * Currently, SP-GiST distance-ordered scans require that there be a
     * distance operator in the opclass with the default types. So we assume
-    * that if such a operator exists, then there's a reason for it.
+    * that if such an operator exists, then there's a reason for it.
     */
 
    /* First we need to know the column's opclass. */
index 199fff4f773c24b7470a0c4170be5c8676eccc68..e8eb83ebd382d5144f27fb9467a64a07fa2e13c4 100644 (file)
@@ -816,7 +816,7 @@ llvm_session_initialize(void)
 
    if (LLVMGetTargetFromTriple(llvm_triple, &llvm_targetref, &error) != 0)
    {
-       elog(FATAL, "failed to query triple %s\n", error);
+       elog(FATAL, "failed to query triple %s", error);
    }
 
    /*
index 1ba13be59ffe58238ce2449e2ab4cd6196a4dad7..98f008bac81d6f1a13c1d6edd096c01b89f30e9d 100644 (file)
@@ -865,7 +865,7 @@ apply_pathtarget_labeling_to_tlist(List *tlist, PathTarget *target)
  *
  * The outputs of this function are two parallel lists, one a list of
  * PathTargets and the other an integer list of bool flags indicating
- * whether the corresponding PathTarget contains any evaluatable SRFs.
+ * whether the corresponding PathTarget contains any evaluable SRFs.
  * The lists are given in the order they'd need to be evaluated in, with
  * the "lowest" PathTarget first.  So the last list entry is always the
  * originally given PathTarget, and any entries before it indicate evaluation
index b4eb4e18e6ab60d989800277575925ced19a9630..7c8b4db7e6ade220074c86f818ebd3143f338311 100644 (file)
@@ -11315,7 +11315,7 @@ get_opclass_name(Oid opclass, Oid actual_datatype,
 
 /*
  * generate_opclass_name
- *     Compute the name to display for a opclass specified by OID
+ *     Compute the name to display for an opclass specified by OID
  *
  * The result includes all necessary quoting and schema-prefixing.
  */
index 5d9a26cf8229048a77af685c82fd8a4c07148c85..7ecbd55670b2221e527af3f3445cb6dab8c2b84f 100644 (file)
@@ -431,11 +431,10 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
    query[0] = '\0';            /* initialize query string to empty */
 
    /*
-    * Create a CTE that collects OIDs of regular user tables, including
-    * matviews and sequences, but excluding toast tables and indexes.  We
-    * assume that relations with OIDs >= FirstNormalObjectId belong to the
-    * user.  (That's probably redundant with the namespace-name exclusions,
-    * but let's be safe.)
+    * Create a CTE that collects OIDs of regular user tables and matviews,
+    * but excluding toast tables and indexes.  We assume that relations with
+    * OIDs >= FirstNormalObjectId belong to the user.  (That's probably
+    * redundant with the namespace-name exclusions, but let's be safe.)
     *
     * pg_largeobject contains user data that does not appear in pg_dump
     * output, so we have to copy that system table.  It's easiest to do that
index 9699d86cc680dc25181288e924fe2a667d31bf47..6b0ac8e1f9e7b4e7458079bd46c120e355e62c0a 100644 (file)
@@ -57,7 +57,7 @@ SELECT now()::timestamp::text = localtimestamp::text;
  t
 (1 row)
 
--- current_role/user/user is tested in rolnames.sql
+-- current_role/user/user is tested in rolenames.sql
 -- current database / catalog
 SELECT current_catalog = current_database();
  ?column? 
index f9f9f97efa427e69e02299329d9f66556a6bc86d..f87751f4ef5f26df007112cacbbeca252b8a26a2 100644 (file)
@@ -24,7 +24,7 @@ SELECT length(current_timestamp::text) >= length(current_timestamp(0)::text);
 -- localtimestamp
 SELECT now()::timestamp::text = localtimestamp::text;
 
--- current_role/user/user is tested in rolnames.sql
+-- current_role/user/user is tested in rolenames.sql
 
 -- current database / catalog
 SELECT current_catalog = current_database();