]> 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:27 +0000 (16:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 3 Jan 2023 07:26:27 +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

16 files changed:
.cirrus.yml
doc/src/sgml/parallel.sgml
doc/src/sgml/ref/alter_table.sgml
doc/src/sgml/ref/create_subscription.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/copy.out
src/test/regress/expected/expressions.out
src/test/regress/sql/copy.sql
src/test/regress/sql/expressions.sql
src/test/ssl/t/SSL/Server.pm

index 63b2426741da06dbeb6459d0bdd618de420ed46e..ab7043c54e6eb8710413341d57fb41293f11c02f 100644 (file)
@@ -11,7 +11,7 @@ env:
   CONTAINER_REPO: us-docker.pkg.dev/${GCP_PROJECT}/ci
 
   # The lower depth accelerates git clone. Use a bit of depth so that
-  # concurrent tasks and retrying older jobs has a chance of working.
+  # concurrent tasks and retrying older jobs have a chance of working.
   CIRRUS_CLONE_DEPTH: 500
   # Useful to be able to analyse what in a script takes long
   CIRRUS_LOG_TIMESTAMP: true
@@ -66,7 +66,7 @@ task:
 
   ccache_cache:
     folder: $CCACHE_DIR
-  # Workaround around performance issues due to 32KB block size
+  # Work around performance issues due to 32KB block size
   repartition_script: src/tools/ci/gcp_freebsd_repartition.sh
   create_user_script: |
     pw useradd postgres
index e556786e2bd96b6105d12e6d1043cf2960eccd23..5acc9537d6f283046b4b757e0b07256a3e6781a4 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 a3c62bf056eac47f56c2cac1fad6d325264de5a7..240fbafade410879232dcbc3843b4ab764b23599 100644 (file)
@@ -1001,7 +1001,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>
@@ -1373,7 +1373,7 @@ WITH ( MODULUS <replaceable class="parameter">numeric_literal</replaceable>, REM
     type or an unconstrained domain over the new type, a table rewrite is not
     needed. However, indexes must always be rebuilt unless the system can
     verify that the new index would be logically equivalent to the existing
-    one.  For example, if the collation for a column has been changed an index
+    one.  For example, if the collation for a column has been changed, an index
     rebuild is always required because the new sort order might be different.
     However, in the absence of a collation change, a column can be changed
     from <type>text</type> to <type>varchar</type> (or vice versa) without
index fdc4acab8af3a7918f7db1c1f4cfe195b2223d93..3eb1ead4ace21105fa39df0e5f4ce0e228fbf67e 100644 (file)
@@ -350,7 +350,7 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl
    <literal>FOR TABLES IN SCHEMA</literal>, rows are always published
    regardless of the definition of the other expressions.
    If the subscriber is a <productname>PostgreSQL</productname> version before
-   15 then any row filtering is ignored during the initial data synchronization
+   15, then any row filtering is ignored during the initial data synchronization
    phase. For this case, the user might want to consider deleting any initially
    copied data that would be incompatible with subsequent filtering.
    Because initial data synchronization does not take into account the publication
index 5186d75d6164838c78fa71192fbb0c6720ec7a30..e0a6f775b6e89269f658b00ef1cc25cea998ded0 100644 (file)
@@ -935,8 +935,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 4e953bfd61db2d29ca76d114842049021d5222b4..a8f213cf78ffec5ea9e337b2a77dc11be4eef822 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 2c661fcf96f247319c6ea8e1cc3a80527c40fa31..f2da02eb52d9078fdc4137670a9cfc9e4d6c3d39 100644 (file)
@@ -1301,7 +1301,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 19e5b153a437e9432c1524bb673c40e515697629..55236e2006cf833a5dd6a0cf70fce70b111772e9 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 784a1af82dfa30cc1f39d5f7ea50f89c9542ddfd..eed3e3fb75a300a51ec743638a218793c0e21981 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 3edd30bec0a683a026d5e85b440aebe7bb428211..c1f75a6ce9ed7b5e24df455fd723086e3608ded7 100644 (file)
@@ -11416,7 +11416,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 89df7afbdc44ef5ef489f368edd638a3c1a0df04..a9ce7408b5e0c3e7a6b40d7dca5295c4fe59805c 100644 (file)
@@ -408,11 +408,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 3fad1c52d1fe53c516b2e52d251737510503fda6..8a8bf43fdea0fb67ce3cb4827779361929552b9f 100644 (file)
@@ -182,7 +182,7 @@ create table header_copytest (
        b int,
        c text
 );
--- Make sure it works with with dropped columns
+-- Make sure it works with dropped columns
 alter table header_copytest drop column c;
 alter table header_copytest add column c text;
 copy header_copytest to stdout with (header match);
index 5bf39fd9aaf4eff6d5e15725f6fbecfb398a7000..889489ab895adf12e0ad03499bb65f19b2169dca 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 285022e07c6232f4d0fcbabe85b66393bd75a1f9..f9da7b1508f38425d42a5bf595944c4b2068da06 100644 (file)
@@ -204,7 +204,7 @@ create table header_copytest (
        b int,
        c text
 );
--- Make sure it works with with dropped columns
+-- Make sure it works with dropped columns
 alter table header_copytest drop column c;
 alter table header_copytest add column c text;
 copy header_copytest to stdout with (header match);
index 0e163cc0d75367140fb3a56f7be355dd69e7553a..aebd08fa0524ed3f1f17d3742b5ae6e2f110fede 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();
index 62f54dcbf1698b8f0b560199911a81f468e07c31..9520578e7d9fa7b192e39091cf6351d2ba322004 100644 (file)
@@ -257,7 +257,7 @@ The certificate file to use. Implementation is SSL backend specific.
 
 =item keyfile => B<value>
 
-The private key to to use. Implementation is SSL backend specific.
+The private key to use. Implementation is SSL backend specific.
 
 =item crlfile => B<value>