Fix typos in code and comments
authorMichael Paquier <[email protected]>
Wed, 11 Jan 2023 06:16:38 +0000 (15:16 +0900)
committerMichael Paquier <[email protected]>
Wed, 11 Jan 2023 06:16:38 +0000 (15:16 +0900)
Author: Justin Pryzby
Discussion: https://postgr.es/m/20230110045722[email protected]

doc/src/sgml/ref/alter_database.sgml
doc/src/sgml/ref/alter_role.sgml
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/system-views.sgml
src/backend/access/transam/xlogrecovery.c
src/backend/utils/mmgr/mcxt.c
src/bin/psql/common.c
src/test/modules/test_pg_db_role_setting/expected/test_pg_db_role_setting.out
src/test/modules/test_pg_db_role_setting/sql/test_pg_db_role_setting.sql

index 181e9d362052abafda38e09b1d2068106d98a3cb..0962f32e134d85ff831bceeb8fe28277e4fa6417 100644 (file)
@@ -211,9 +211,9 @@ ALTER DATABASE <replaceable class="parameter">name</replaceable> RESET ALL
       <term><literal>USER SET</literal></term>
       <listitem>
        <para>
-        Specifies that variable should be set on behalf of ordinary role.
-        That lets non-superuser and non-replication role to set placeholder
-        variables, with permission requirements is not known yet;
+        Specifies that the variable should be set on behalf of an ordinary role.
+        That allows non-superuser and non-replication roles to set placeholder
+        variables, whose permission requirements are not known yet;
         see <xref linkend="runtime-config-custom"/>. The variable won't
         be set if it appears to require superuser privileges.
        </para>
index 43067d3feca4e99daaa83635f75e2602c8861c4e..fbb4612e7077188013280d3a22f786c04ff41e44 100644 (file)
@@ -241,9 +241,9 @@ ALTER ROLE { <replaceable class="parameter">role_specification</replaceable> | A
       <term><literal>USER SET</literal></term>
       <listitem>
        <para>
-        Specifies that variable should be set on behalf of ordinary role.
-        That lets non-superuser and non-replication role to set placeholder
-        variables, with permission requirements is not known yet;
+        Specifies that the variable should be set on behalf of an ordinary role.
+        That allows non-superuser and non-replication roles to set placeholder
+        variables, whose permission requirements are not known yet;
         see <xref linkend="runtime-config-custom"/>. The variable won't
         be set if it appears to require superuser privileges.
        </para>
index 1a117dbecba673799a401897e42b2f8b6bbf068e..dc6528dc11d1344069ef7f45b18624d74c2f1c98 100644 (file)
@@ -1901,8 +1901,8 @@ INSERT INTO tbl1 VALUES ($1, $2) \bind 'first value' 'second value' \g
         </para>
 
         <para>
-        Since <productname>PostgreSQL</productname> 16 the output includes
-        column with the values of
+        Since <productname>PostgreSQL</productname> 16, the output includes a
+        column with the values of the
         <link linkend="sql-alterrole-user-set"><literal>USER SET</literal></link>
         flag for each setting.
         </para>
index 5b1c73269b94159258f759d274c4a9464c38f577..7c8fc3f654b55d4c881e4ec09a074335552582be 100644 (file)
   </para>
 
   <para>
-   A specualtive insertion lock consists of a transaction ID and a speculative
+   A speculative insertion lock consists of a transaction ID and a speculative
    insertion token. The speculative insertion token is displayed in the
    <structfield>objid</structfield> column.
   </para>
index bc3c3eb3e7972769c29cb380c01c7db664a6c1e8..5e657853066b39b3233be036ae6458354194b996 100644 (file)
@@ -2114,7 +2114,7 @@ CheckRecoveryConsistency(void)
 
        /*
         * Check that pg_tblspc doesn't contain any real directories. Replay
-        * of Database/CREATE_* records may have created ficticious tablespace
+        * of Database/CREATE_* records may have created fictitious tablespace
         * directories that should have been removed by the time consistency
         * was reached.
         */
index 8b6591abfb2300fab4ae245fe99f5a88c11f8f2e..0b00802df70a2e34fde3d432d4a37070dd1ef4d6 100644 (file)
@@ -717,10 +717,10 @@ MemoryContextStatsDetail(MemoryContext context, int max_children,
         * to the connected client.
         *
         * We don't buffer the information about all memory contexts in a
-        * backend into StringInfo and log it as one message. Otherwise which
-        * may require the buffer to be enlarged very much and lead to OOM
-        * error since there can be a large number of memory contexts in a
-        * backend. Instead, we log one message per memory context.
+        * backend into StringInfo and log it as one message.  That would
+        * require the buffer to be enlarged, risking an OOM as there could
+        * be a large number of memory contexts in a backend.  Instead, we
+        * log one message per memory context.
         */
        ereport(LOG_SERVER_ONLY,
                (errhidestmt(true),
index 38f9b10b7c9532279eb2be235abc0acb901c7bb4..00627830c47484c9764d1ed79cde4a6d53086e77 100644 (file)
@@ -1447,7 +1447,7 @@ ExecQueryAndProcessResults(const char *query,
        if (!AcceptResult(result, false))
        {
            /*
-            * Some error occured, either a server-side failure or a failure
+            * Some error occurred, either a server-side failure or a failure
             * to submit the command string.  Record that.
             */
            const char *error = PQresultErrorMessage(result);
index bee237cf40be7b6a02f8213a7460d51711c74aae..ec18692c55888f46192e31a27358980173e2ba28 100644 (file)
@@ -122,7 +122,7 @@ SHOW test_pg_db_role_setting.user_param;
  bbb
 (1 row)
 
--- module is loaded, and placeholder values are succesfully set
+-- module is loaded, and placeholder values are successfully set
 SELECT load_test_pg_db_role_setting();
  load_test_pg_db_role_setting 
 ------------------------------
index c6095dfa98c4aa4886403a0fe36fe0774f31007d..44f231c6b4b16c3162eecb3376783c462786dee1 100644 (file)
@@ -56,7 +56,7 @@ ALTER ROLE regress_regular_user SET test_pg_db_role_setting.superuser_param = 'c
 SHOW test_pg_db_role_setting.superuser_param;
 SHOW test_pg_db_role_setting.user_param;
 
--- module is loaded, and placeholder values are succesfully set
+-- module is loaded, and placeholder values are successfully set
 SELECT load_test_pg_db_role_setting();
 
 SHOW test_pg_db_role_setting.superuser_param;