Fix various typos in code and tests
authorMichael Paquier <[email protected]>
Thu, 9 Feb 2023 05:43:53 +0000 (14:43 +0900)
committerMichael Paquier <[email protected]>
Thu, 9 Feb 2023 05:43:53 +0000 (14:43 +0900)
Most of these are recent, and the documentation portions are new as of
v16 so there is no need for a backpatch.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20230208155644[email protected]

20 files changed:
contrib/postgres_fdw/deparse.c
doc/src/sgml/config.sgml
doc/src/sgml/ref/create_database.sgml
doc/src/sgml/ref/create_schema.sgml
src/backend/commands/dbcommands.c
src/backend/executor/execMain.c
src/backend/jit/llvm/llvmjit_inline.cpp
src/backend/replication/logical/snapbuild.c
src/backend/replication/walsender.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_dumpall.c
src/include/lib/ilist.h
src/include/partitioning/partdesc.h
src/include/port/simd.h
src/test/regress/expected/alter_table.out
src/test/regress/expected/create_procedure.out
src/test/regress/sql/alter_table.sql
src/test/regress/sql/create_procedure.sql
src/test/subscription/t/031_column_list.pl

index 8a847deb13bdb460b1183f3130f21ed2534d2b60..09d6dd60ddc87f1070c7568cedfe88f7a36a1ecd 100644 (file)
@@ -2412,7 +2412,7 @@ deparseAnalyzeInfoSql(StringInfo buf, Relation rel)
  *
  * We could also do "ORDER BY random() LIMIT x", which would always pick
  * the expected number of rows, but it requires sorting so it may be much
- * more expensive (particularly on large tables, which is what what the
+ * more expensive (particularly on large tables, which is what the
  * remote sampling is meant to improve).
  */
 void
index d190be1925d56f5a0fa110326d1b526c09ce815d..8c56b134a842273503c77406f2b896243e29f128 100644 (file)
@@ -718,7 +718,7 @@ include_dir 'conf.d'
        <para>
         Determines the number of connection <quote>slots</quote> that are
         reserved for connections by roles with privileges of the
-        <link linkend="predefined-roles-table"><literal>pg_used_reserved_connections</literal></link>
+        <link linkend="predefined-roles-table"><literal>pg_use_reserved_connections</literal></link>
         role.  Whenever the number of free connection slots is greater than
         <xref linkend="guc-superuser-reserved-connections"/> but less than or
         equal to the sum of <varname>superuser_reserved_connections</varname>
index f3df2def864573b16db3f88330bbe74540a1fe7f..91c39c523039cb57e10efde62244bc62ec451da4 100644 (file)
@@ -89,7 +89,7 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable>
         The role name of the user who will own the new database,
         or <literal>DEFAULT</literal> to use the default (namely, the
         user executing the command).  To create a database owned by another
-        role, you must must be able to <literal>SET ROLE</literal> to that
+        role, you must be able to <literal>SET ROLE</literal> to that
         role.
        </para>
       </listitem>
index 04b0c28731ec82c4aecb40506ebbbec86a40e77f..ed69298ccc6ce7a880dc3b5a26be4169ff7f8825 100644 (file)
@@ -89,7 +89,7 @@ CREATE SCHEMA IF NOT EXISTS AUTHORIZATION <replaceable class="parameter">role_sp
        <para>
         The role name of the user who will own the new schema.  If omitted,
         defaults to the user executing the command.  To create a schema
-        owned by another role, you must must be able to
+        owned by another role, you must be able to
         <literal>SET ROLE</literal> to that role.
        </para>
       </listitem>
index 1f4ce2fb9cfcca4bb237ee7ebfcdc857923eb343..ef05633bb059fcc4ff16aa57904ead8c0db61da6 100644 (file)
@@ -3090,7 +3090,7 @@ dbase_redo(XLogReaderState *record)
 
        /*
         * There's a case where the copy source directory is missing for the
-        * same reason above.  Create the emtpy source directory so that
+        * same reason above.  Create the empty source directory so that
         * copydir below doesn't fail.  The directory will be dropped soon by
         * recovery.
         */
index a5115b9c1f7b8197ba95544c8b1e420ebefd6698..39bfb48dc22527851f8628fe3202e4024241b9a1 100644 (file)
@@ -134,7 +134,7 @@ ExecutorStart(QueryDesc *queryDesc, int eflags)
    /*
     * In some cases (e.g. an EXECUTE statement) a query execution will skip
     * parse analysis, which means that the query_id won't be reported.  Note
-    * that it's harmless to report the query_id multiple time, as the call
+    * that it's harmless to report the query_id multiple times, as the call
     * will be ignored if the top level query_id has already been reported.
     */
    pgstat_report_query_id(queryDesc->plannedstmt->queryId, false);
index dc35e002f5145b12ec3fad677769167bef0bece9..c765add8564c8f6c6f72791574066fdaf5ae3297 100644 (file)
@@ -753,7 +753,7 @@ function_inlinable(llvm::Function &F,
        /* import referenced function itself */
        importVars.insert(referencedFunction->getName());
 
-       /* import referenced function and its dependants */
+       /* import referenced function and its dependents */
        for (auto& recImportVar : recImportVars)
            importVars.insert(recImportVar.first());
    }
index 829c5681120e814cecb4a86b10c5b8cece0a86ba..62542827e4b81a96fd61ba7f1e9ca963011f2fff 100644 (file)
@@ -1816,7 +1816,7 @@ SnapBuildSerialize(SnapBuild *builder, XLogRecPtr lsn)
    fsync_fname("pg_logical/snapshots", true);
 
    /*
-    * Now there's no way we can loose the dumped state anymore, remember this
+    * Now there's no way we can lose the dumped state anymore, remember this
     * as a serialization point.
     */
    builder->last_serialized_snapshot = lsn;
index 4ed3747e3f9a15b3d683e359214c30c8ea8ec8f2..75e8363e24812577b99e6918249fe91dcb64eea1 100644 (file)
@@ -2050,9 +2050,9 @@ PhysicalConfirmReceivedLocation(XLogRecPtr lsn)
 
    /*
     * One could argue that the slot should be saved to disk now, but that'd
-    * be energy wasted - the worst lost information can do here is give us
-    * wrong information in a statistics view - we'll just potentially be more
-    * conservative in removing files.
+    * be energy wasted - the worst thing lost information could cause here is
+    * to give wrong information in a statistics view - we'll just potentially
+    * be more conservative in removing files.
     */
 }
 
index 1d3ef2c694e2567c6a096e41cf8d536a980aec4b..948b859b569f018da183bfb50cca70f91250e3e7 100644 (file)
@@ -2015,8 +2015,9 @@ BaseBackup(char *compression_algorithm, char *compression_detail,
             * If we write the data out to a tar file, it will be named
             * base.tar if it's the main data directory or <tablespaceoid>.tar
             * if it's for another tablespace. CreateBackupStreamer() will
-            * arrange to add .gz to the archive name if pg_basebackup is
-            * performing compression.
+            * arrange to add an extension to the archive name if
+            * pg_basebackup is performing compression, depending on the
+            * compression type.
             */
            if (PQgetisnull(res, i, 0))
            {
index d1e54644a94c19321bde61c033938a6d6437f8db..7529367a7b91f701347737f470d57885adc58995 100644 (file)
@@ -99,7 +99,7 @@ static size_t _CustomReadFunc(ArchiveHandle *AH, char **buf, size_t *buflen);
  * It's task is to create any extra archive context (using AH->formatData),
  * and to initialize the supported function pointers.
  *
- * It should also prepare whatever it's input source is for reading/writing,
+ * It should also prepare whatever its input source is for reading/writing,
  * and in the case of a read mode connection, it should load the Header & TOC.
  */
 void
index fbd1c6fc85b70c23739b36b7daf67eccf3cfcab5..cd421c5944385460aed1c0eda8b9100c130c5c45 100644 (file)
@@ -995,7 +995,7 @@ dumpRoleMembership(PGconn *conn)
        fprintf(OPF, "--\n-- Role memberships\n--\n\n");
 
    /*
-    * We can't dump these GRANT commands in arbitary order, because a role
+    * We can't dump these GRANT commands in arbitrary order, because a role
     * that is named as a grantor must already have ADMIN OPTION on the
     * role for which it is granting permissions, except for the boostrap
     * superuser, who can always be named as the grantor.
index e03aa1c683b7dd84a6d0c94eed41d6033ef2e7da..095107a99c47a84054e846e50e439b149736951f 100644 (file)
@@ -39,7 +39,7 @@
  * operations that can be done without branches (and thus faster) on lists
  * that use circular representation.  However, it is often convenient to
  * initialize list headers to zeroes rather than setting them up with an
- * explicit initialization function, so we also allow the NULL initalization.
+ * explicit initialization function, so we also allow the NULL initialization.
  *
  * EXAMPLES
  *
index 7d71fb6e9319c0132a04b36685918af9bdb858b7..e157eae9c1ebf21a14fb9ae57debfa09046e79c3 100644 (file)
@@ -31,7 +31,7 @@ typedef struct PartitionDescData
    int         nparts;         /* Number of partitions */
    bool        detached_exist; /* Are there any detached partitions? */
    Oid        *oids;           /* Array of 'nparts' elements containing
-                                * partition OIDs in order of the their bounds */
+                                * partition OIDs in order of their bounds */
    bool       *is_leaf;        /* Array of 'nparts' elements storing whether
                                 * the corresponding 'oids' element belongs to
                                 * a leaf partition or not */
index c836360d4b772891a639978d76470b36b4e32cb1..1fa6c3bc6c49687c59ffa1a3471a22e4fadb4443 100644 (file)
@@ -345,7 +345,7 @@ vector8_ssub(const Vector8 v1, const Vector8 v2)
 #endif                         /* ! USE_NO_SIMD */
 
 /*
- * Return a vector with all bits set in each lane where the the corresponding
+ * Return a vector with all bits set in each lane where the corresponding
  * lanes in the inputs are equal.
  */
 #ifndef USE_NO_SIMD
index 9e5f6c1a80483af37302a96e4b7bc46b876f8b30..97bfc3475b6233b0bb454d520bebc0dc987a77f6 100644 (file)
@@ -2566,7 +2566,7 @@ select * from at_view_2;
 drop view at_view_2;
 drop view at_view_1;
 drop table at_base_table;
--- check adding a column not iself requiring a rewrite, together with
+-- check adding a column not itself requiring a rewrite, together with
 -- a column requiring a default (bug #16038)
 -- ensure that rewrites aren't silently optimized away, removing the
 -- value of the test
index 46c827f9791c6b8e0803f15a2403fd76cdb2fe6d..f2a677fa552a899c25bee2781b93d9f6c74cba5b 100644 (file)
@@ -100,7 +100,7 @@ SELECT * FROM cp_test ORDER BY b COLLATE "C";
  1 | xyzzy
 (4 rows)
 
--- utitlity functions currently not supported here
+-- utility functions currently not supported here
 CREATE PROCEDURE ptestx()
 LANGUAGE SQL
 BEGIN ATOMIC
index f58b2f75d5b4c201b7e23fddcc770e651ec2af55..b5d57a771ae43fe0982d36402b779311ae8d5ee9 100644 (file)
@@ -1635,7 +1635,7 @@ drop view at_view_2;
 drop view at_view_1;
 drop table at_base_table;
 
--- check adding a column not iself requiring a rewrite, together with
+-- check adding a column not itself requiring a rewrite, together with
 -- a column requiring a default (bug #16038)
 
 -- ensure that rewrites aren't silently optimized away, removing the
index 75cc0fcf2a6ce43bb7d6aff88f3e41b9a603d803..35b872779efc1608b3421800ba1239e90e20937e 100644 (file)
@@ -42,7 +42,7 @@ CALL ptest1s('b');
 
 SELECT * FROM cp_test ORDER BY b COLLATE "C";
 
--- utitlity functions currently not supported here
+-- utility functions currently not supported here
 CREATE PROCEDURE ptestx()
 LANGUAGE SQL
 BEGIN ATOMIC
index 7c313e26eeae4526228886ff98611697910f41ae..fd77757352a7ff454cfcf525a0f4dbc47f1afdb1 100644 (file)
@@ -1034,7 +1034,7 @@ is( $node_subscriber->safe_psql('postgres', "SELECT * FROM s1.t ORDER BY a"),
 4|5|6),
    'two publications, publishing the same relation');
 
-# Now resync the subcription, but with publications in the opposite order.
+# Now resync the subscription, but with publications in the opposite order.
 # The result should be the same.
 
 $node_subscriber->safe_psql(