]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix typos in comments, code and documentation
authorMichael Paquier <michael@paquier.xyz>
Tue, 3 Jan 2023 07:26:37 +0000 (16:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 3 Jan 2023 07:26:37 +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.GI1153@telsasoft.com
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/bin/pg_upgrade/info.c
src/test/regress/expected/expressions.out
src/test/regress/sql/expressions.sql

index dcd172ef52ccf913221427fd20aa8683501753e2..340d47af087164ffeaa38e4f4e5f89832505a74f 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 327aedc409da8273e108dd4aecfa304bc7e04d5f..39df9d374fb4c11817bc74b423b5089fec1f037d 100644 (file)
@@ -923,7 +923,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 d2014ee4ed5ae3a33b21c5c4f8c448557841d3de..1800ef5825e2501c9b904c63c6debe6ef2e2bc14 100644 (file)
@@ -921,8 +921,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 ee1c6f234a21cbfe5e5804479a262e93f463f808..b66caec11fffc1d16fcfb9ccb75404a9129e31f5 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 45472db147b1bde49f4a5254709238740258ff7a..e5b5f6c334019eca5a82640a68d41e5a1a76c77a 100644 (file)
@@ -988,7 +988,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 f0bfee2d6c3fabeb3f5201eb91f6cafa4966e312..537e0c448a18e5df956c3a93ec245995042ccb9f 100644 (file)
@@ -781,7 +781,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 41402821a159f836276106b37d3c2a0895eb47be..f2657cb14f1ff0ef842ff05f80232d5096412903 100644 (file)
@@ -871,7 +871,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 5c7b4337ba4c7ebaae05f89f1947d24127793705..0dbe22890591e80de25354f0eec62f370955b257 100644 (file)
@@ -433,11 +433,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 726c1198a92a1474f25d3154a06f552a435fae0a..69d819f3fd53c39569bbdda48056e889560a9e38 100644 (file)
@@ -45,7 +45,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 74189ad1fde8fd0b6eb4fc855b922f93447f34df..9cd37cf9d42e469cda67a3743c6f1b1c364e9ca5 100644 (file)
@@ -22,7 +22,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();