Fix collection of typos in the code and the documentation
authorMichael Paquier <michael@paquier.xyz>
Tue, 15 Mar 2022 02:29:23 +0000 (11:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 15 Mar 2022 02:29:35 +0000 (11:29 +0900)
Some words were duplicated while other places were grammatically
incorrect, including one variable name in the code.

Author: Otto Kekalainen, Justin Pryzby
Discussion: https://postgr.es/m/7DDBEFC5-09B6-4325-B942-B563D1A24BDC@amazon.com

29 files changed:
config/pkg.m4
contrib/pageinspect/expected/gist.out
contrib/pageinspect/sql/gist.sql
doc/src/sgml/config.sgml
doc/src/sgml/logicaldecoding.sgml
doc/src/sgml/postgres-fdw.sgml
src/backend/access/heap/pruneheap.c
src/backend/access/transam/xlog.c
src/backend/catalog/index.c
src/backend/commands/explain.c
src/backend/main/main.c
src/backend/postmaster/bgworker.c
src/backend/replication/basebackup_sink.c
src/backend/utils/adt/tsrank.c
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/t/010_pg_basebackup.pl
src/bin/pg_verifybackup/t/008_untar.pl
src/bin/pg_verifybackup/t/010_client_untar.pl
src/bin/pgbench/pgbench.c
src/include/libpq/sasl.h
src/interfaces/libpq/t/001_uri.pl
src/test/perl/PostgreSQL/Test/Cluster.pm
src/test/regress/expected/create_function_sql.out
src/test/regress/expected/create_table.out
src/test/regress/expected/object_address.out
src/test/regress/sql/create_function_sql.sql
src/test/regress/sql/create_table.sql
src/test/regress/sql/object_address.sql
src/test/subscription/t/001_rep_changes.pl

index 13a889017866a112bbf088864210d7ada61b5682..f9075e56c87afe6fa5032aef2449eb57a5815bcb 100644 (file)
@@ -86,7 +86,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
 dnl
 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
-dnl only at the first occurence in configure.ac, so if the first place
+dnl only at the first occurrence in configure.ac, so if the first place
 dnl it's called might be skipped (such as if it is within an "if", you
 dnl have to call PKG_CHECK_EXISTS manually
 AC_DEFUN([PKG_CHECK_EXISTS],
index b26b56ba15df187257dbc5649c324351620d5067..93abfcdd5e1d28a9266b77fbcf5360cf2a68663b 100644 (file)
@@ -52,7 +52,7 @@ SELECT * FROM gist_page_items(get_raw_page('test_gist_idx', 1), 'test_gist_idx')
 (5 rows)
 
 -- gist_page_items_bytea prints the raw key data as a bytea. The output of that is
--- platform-dependent (endianess), so omit the actual key data from the output.
+-- platform-dependent (endianness), so omit the actual key data from the output.
 SELECT itemoffset, ctid, itemlen FROM gist_page_items_bytea(get_raw_page('test_gist_idx', 0));
  itemoffset |   ctid    | itemlen 
 ------------+-----------+---------
index 1560d1e15c31570cb39a9d1160799aa880fa98d2..3e83239a9d0a967fc57bd1dce24edf21f204ba88 100644 (file)
@@ -23,7 +23,7 @@ SELECT * FROM gist_page_items(get_raw_page('test_gist_idx', 0), 'test_gist_idx')
 SELECT * FROM gist_page_items(get_raw_page('test_gist_idx', 1), 'test_gist_idx') LIMIT 5;
 
 -- gist_page_items_bytea prints the raw key data as a bytea. The output of that is
--- platform-dependent (endianess), so omit the actual key data from the output.
+-- platform-dependent (endianness), so omit the actual key data from the output.
 SELECT itemoffset, ctid, itemlen FROM gist_page_items_bytea(get_raw_page('test_gist_idx', 0));
 
 DROP TABLE test_gist;
index 5b763bf60f408a934425f475e4aecd40c363b031..7a48973b3c86a186a5f66086ff755200017ac58c 100644 (file)
@@ -4746,7 +4746,7 @@ ANY <replaceable class="parameter">num_sync</replaceable> ( <replaceable class="
         log file by reducing the value of this parameter. On a system with
         low WAL activity, increasing it reduces the amount of requests necessary
         to access WAL archives, something useful for example in cloud
-        environments where the amount of times an infrastructure is accessed
+        environments where the number of times an infrastructure is accessed
         is taken into account.
        </para>
       </listitem>
@@ -7515,7 +7515,7 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
       Including <literal>jsonlog</literal> in the
       <varname>log_destination</varname> list provides a convenient way to
       import log files into many different programs. This option emits log
-      lines in (<acronym>JSON</acronym>) format.
+      lines in <acronym>JSON</acronym> format.
      </para>
 
      <para>
index 3d7d52a84d60a11026b07640adc32718b029e2d7..a6ea6ff3fcff3d4092adb8c6302d83552585eb84 100644 (file)
@@ -832,10 +832,10 @@ typedef void (*LogicalDecodeSequenceCB) (struct LogicalDecodingContext *ctx,
       The <parameter>txn</parameter> parameter contains meta information about
       the transaction the sequence change is part of. Note however that for
       non-transactional increments, the transaction may be either NULL or not
-      NULL, depending on if the transaction already has XID assigned.
-      The <parameter>sequence_lsn</parameter> has WAL location of the sequence
-      update. The <parameter>transactional</parameter> says if the sequence has
-      to be replayed as part of the transaction or directly.
+      NULL, depending on if the transaction already has an XID assigned.
+      The <parameter>sequence_lsn</parameter> has the WAL location of the
+      sequence update. <parameter>transactional</parameter> says if the
+      sequence has to be replayed as part of the transaction or directly.
 
       The <parameter>last_value</parameter>, <parameter>log_cnt</parameter> and
       <parameter>is_called</parameter> parameters describe the sequence change.
@@ -1264,7 +1264,7 @@ OutputPluginWrite(ctx, true);
     streamed in blocks demarcated by <function>stream_start_cb</function>
     and <function>stream_stop_cb</function> callbacks. Once all the decoded
     changes are transmitted, the transaction can be committed using the
-    the <function>stream_commit_cb</function> callback
+    <function>stream_commit_cb</function> callback
     (or possibly aborted using the <function>stream_abort_cb</function> callback).
     If two-phase commits are supported, the transaction can be prepared using the
     <function>stream_prepare_cb</function> callback,
index 8ebf0dc3a0584833b0fef4518b475aa43bf3c6c6..d8dc715587452d8b85d5c73323dbf147129012e5 100644 (file)
@@ -1003,7 +1003,7 @@ postgres=# SELECT postgres_fdw_disconnect_all();
       it's passed to and used as <varname>application_name</varname>
       in a foreign server, note that it will be truncated to less than
       <symbol>NAMEDATALEN</symbol> characters and anything other than
-      than printable ASCII characters will be replaced with question
+      printable ASCII characters will be replaced with question
       marks (<literal>?</literal>).
       See <xref linkend="guc-application-name"/> for details.
      </para>
index b6500763a5aca93860dfd5924dd3d5e8a246aebf..4656f1b3db4e9b1a938f53cc10828cdc28d72f13 100644 (file)
@@ -69,7 +69,7 @@ typedef struct
        /*
         * Tuple visibility is only computed once for each tuple, for correctness
         * and efficiency reasons; see comment in heap_page_prune() for
-        * details. This is of type int8[,] intead of HTSV_Result[], so we can use
+        * details. This is of type int8[,] instead of HTSV_Result[], so we can use
         * -1 to indicate no visibility has been computed, e.g. for LP_DEAD items.
         *
         * Same indexing as ->marked.
index a22f7addacc99623792c686f385e794e909ca365..ed16f279b1f6c588e8b55fc2c57df7be20f49ad6 100644 (file)
@@ -5870,7 +5870,7 @@ GetRedoRecPtr(void)
  * full-page image to be included in the WAL record.
  *
  * The returned values are cached copies from backend-private memory, and
- * possibly out-of-date or, indeed, uninitalized, in which case they will
+ * possibly out-of-date or, indeed, uninitialized, in which case they will
  * be InvalidXLogRecPtr and false, respectively.  XLogInsertRecord will
  * re-check them against up-to-date values, while holding the WAL insert lock.
  */
index 5e3fc2b35dc39bb06c66c9582d587d8c19e82931..e43117ffefebdb022c09092f781240e5ceccc4cd 100644 (file)
@@ -918,7 +918,7 @@ index_create(Relation heapRelation,
                        indexRelationId = binary_upgrade_next_index_pg_class_oid;
                        binary_upgrade_next_index_pg_class_oid = InvalidOid;
 
-                       /* Overide the index relfilenode */
+                       /* Override the index relfilenode */
                        if ((relkind == RELKIND_INDEX) &&
                                (!OidIsValid(binary_upgrade_next_index_pg_class_relfilenode)))
                                ereport(ERROR,
index de81379da39ac31e1caa4d973c990dd9d5ba5b8f..9f632285b628a3b67717d1d75a32bcd47db3b80d 100644 (file)
@@ -3102,7 +3102,7 @@ show_memoize_info(MemoizeState *mstate, List *ancestors, ExplainState *es)
        ListCell   *lc;
        List       *context;
        StringInfoData keystr;
-       char       *seperator = "";
+       char       *separator = "";
        bool            useprefix;
        int64           memPeakKb;
 
@@ -3123,11 +3123,11 @@ show_memoize_info(MemoizeState *mstate, List *ancestors, ExplainState *es)
        {
                Node       *expr = (Node *) lfirst(lc);
 
-               appendStringInfoString(&keystr, seperator);
+               appendStringInfoString(&keystr, separator);
 
                appendStringInfoString(&keystr, deparse_expression(expr, context,
                                                                                                                   useprefix, false));
-               seperator = ", ";
+               separator = ", ";
        }
 
        if (es->format != EXPLAIN_FORMAT_TEXT)
index 3d67ce9dcea12e9c6b01537de8a01cf96812fe0f..c43a527d3f99ab1428142f0d16cec80336be621d 100644 (file)
@@ -247,7 +247,7 @@ startup_hacks(const char *progname)
                 * leaving the default in place would make debugging harder.
                 *
                 * MINGW's own C runtime doesn't have _set_abort_behavior(). When
-                * targetting Microsoft's UCRT with mingw, it never links to the debug
+                * targeting Microsoft's UCRT with mingw, it never links to the debug
                 * version of the library and thus doesn't need the call to
                 * _set_abort_behavior() either.
                 */
index e441726c83e3bee5e9b580cb0950438b02ec234c..30682b63b3fa1fd7c26d3597b8730576899da9f2 100644 (file)
@@ -531,7 +531,7 @@ BackgroundWorkerStopNotifications(pid_t pid)
  * This is called during a normal ("smart" or "fast") database shutdown.
  * After this point, no new background workers will be started, so anything
  * that might be waiting for them needs to be kicked off its wait.  We do
- * that by cancelling the bgworker registration entirely, which is perhaps
+ * that by canceling the bgworker registration entirely, which is perhaps
  * overkill, but since we're shutting down it does not matter whether the
  * registration record sticks around.
  *
index 47ba50c2f878befb0e74ba735e8bd06f21c41cc0..81353f8f4d125c091e5926841758d4eba837be62 100644 (file)
@@ -18,7 +18,7 @@
  * Forward begin_backup callback.
  *
  * Only use this implementation if you want the bbsink you're implementing to
- * share a buffer with the succesor bbsink.
+ * share a buffer with the successor bbsink.
  */
 void
 bbsink_forward_begin_backup(bbsink *sink)
@@ -43,7 +43,7 @@ bbsink_forward_begin_archive(bbsink *sink, const char *archive_name)
 /*
  * Forward archive_contents callback.
  *
- * Code that wants to use this should initalize its own bbs_buffer and
+ * Code that wants to use this should initialize its own bbs_buffer and
  * bbs_buffer_length fields to the values from the successor sink. In cases
  * where the buffer isn't shared, the data needs to be copied before forwarding
  * the callback. We don't do try to do that here, because there's really no
index cd8aff0ad244cbbd29527be3b81043838e66b73e..3858fc59281cdcc952a69f6cd9961f94c479c7e3 100644 (file)
@@ -337,7 +337,7 @@ calc_rank_or(const float *w, TSVector t, TSQuery q)
                        }
 /*
                        limit (sum(1/i^2),i=1,inf) = pi^2/6
-                       resj = sum(wi/i^2),i=1,noccurence,
+                       resj = sum(wi/i^2),i=1,noccurrence,
                        wi - should be sorted desc,
                        don't sort for now, just choose maximum weight. This should be corrected
                        Oleg Bartunov
index d265ee3b3c5e652523d67ad75a40446acbec1169..2943d9ec1a084407ce3641da1760267e7ca4f38e 100644 (file)
@@ -1722,7 +1722,7 @@ GetCopyDataEnd(size_t r, char *copybuf, size_t cursor)
  *
  * As a debugging aid, we try to give some hint about what kind of message
  * provoked the failure. Perhaps this is not detailed enough, but it's not
- * clear that it's worth expending any more code on what shoud be a
+ * clear that it's worth expending any more code on what should be a
  * can't-happen case.
  */
 static void
index 8cb8cfe045e2c34f8541ac6e146673b120d1eb69..efefe947d9af23312371f5a6299dc724672266bb 100644 (file)
@@ -22,7 +22,7 @@ my $node = PostgreSQL::Test::Cluster->new('main');
 
 # For nearly all pg_basebackup invocations some options should be specified,
 # to keep test times reasonable. Using @pg_basebackup_defs as the first
-# element of the array passed to to IPC::Run interpolate the array (as it is
+# element of the array passed to IPC::Run interpolate the array (as it is
 # not a reference to an array)...
 my @pg_basebackup_defs = ('pg_basebackup', '--no-sync', '-cfast');
 
@@ -287,7 +287,7 @@ is(scalar(@tblspc_tars), 1, 'one tablespace tar was created');
 SKIP:
 {
        my $tar = $ENV{TAR};
-       # don't check for a working tar here, to accomodate various odd
+       # don't check for a working tar here, to accommodate various odd
        # cases such as AIX. If tar doesn't work the init_from_backup below
        # will fail.
        skip "no tar program available", 1
index efbc910dfbb9a8a0523538dbba9099413914590b..d52ca17430b670b9b05544fa9eaa54a6cdab165c 100644 (file)
@@ -95,7 +95,7 @@ for my $tc (@test_configuration)
 
                SKIP: {
                        my $tar = $ENV{TAR};
-                       # don't check for a working tar here, to accomodate various odd
+                       # don't check for a working tar here, to accommodate various odd
                        # cases such as AIX. If tar doesn't work the init_from_backup below
                        # will fail.
                        skip "no tar program available", 1
index c2a6161be6892c4281292cd2356b5aafc884ff4e..0b96b6cc43ced102634dbc772be7be705fa92f76 100644 (file)
@@ -96,7 +96,7 @@ for my $tc (@test_configuration)
 
                SKIP: {
                        my $tar = $ENV{TAR};
-                       # don't check for a working tar here, to accomodate various odd
+                       # don't check for a working tar here, to accommodate various odd
                        # cases such as AIX. If tar doesn't work the init_from_backup below
                        # will fail.
                        skip "no tar program available", 1
index 4ebe5e6ea46fb7695b27dcafb0efcee696c1297d..000ffc4a5cc9f871ad140e6136c3dc04f8e0e259 100644 (file)
@@ -4183,7 +4183,7 @@ initGenerateDataClientSide(PGconn *con)
         * accounts is big enough to be worth using COPY and tracking runtime
         */
 
-       /* use COPY with FREEZE on v14 and later without partioning */
+       /* use COPY with FREEZE on v14 and later without partitioning */
        if (partitions == 0 && PQserverVersion(con) >= 140000)
                copy_statement = "copy pgbench_accounts from stdin with (freeze on)";
        else
index 71cc0dc25142690ca54d605f1d1eb787267bc709..39ccf8f0e316febe140fedc238b8e09d185ce5b2 100644 (file)
@@ -62,7 +62,7 @@ typedef struct pg_be_sasl_mech
         * must return a pointer to its allocated state, which will be passed
         * as-is as the first argument to the other callbacks.
         *
-        * Input paramters:
+        * Input parameters:
         *
         *      port:        The client Port.
         *
index 90f370f8fd67855d8a7d56bddde8e798a472be76..1d595c05292e36f51546ab2a0778c57218bc0603 100644 (file)
@@ -232,7 +232,7 @@ sub test_uri
        chomp($result{stderr});
 
        # use is_deeply so there's one test result for each test above, without
-       # loosing the information whether stdout/stderr mismatched.
+       # losing the information whether stdout/stderr mismatched.
        is_deeply(\%result, \%expect, $uri);
 }
 
index 4db52bc9367486b18a20638d56088460ef22182c..e7b91611374246db6b685d233d964fc5d8715031 100644 (file)
@@ -1372,9 +1372,9 @@ sub _set_pg_version
 #    local %ENV = $self->_get_env{[%extra_settings]);
 #
 # A copy of the environment is taken and node's host and port settings are
-# added as PGHOST and PGPORT, Then the extra settings (if any) are applied.
-# Any setting in %extra_settings with a value that is undefined is deleted
-# the remainder are# set. Then the PATH and (DY)LD_LIBRARY_PATH are adjusted
+# added as PGHOST and PGPORT, then the extra settings (if any) are applied.
+# Any setting in %extra_settings with a value that is undefined is deleted;
+# the remainder are set. Then the PATH and (DY)LD_LIBRARY_PATH are adjusted
 # if the node's install path is set, and the copy environment is returned.
 #
 # The install path set in new() needs to be a directory containing
index f956955464828ba1cd1aef89efdf2cbd469dd625..a31daffbf34811238db27a639fe65053b6879aee 100644 (file)
@@ -279,7 +279,7 @@ CREATE FUNCTION functest_S_13() RETURNS boolean
         SELECT 1;
         SELECT false;
     END;
--- check display of function argments in sub-SELECT
+-- check display of function arguments in sub-SELECT
 CREATE TABLE functest1 (i int);
 CREATE FUNCTION functest_S_16(a int, b int) RETURNS void
     LANGUAGE SQL
index 02d09995808a4b04e5bc2db8a5e2718a358e0748..4407a017a9f4d370604f3d2dd19c5627da758e37 100644 (file)
@@ -811,7 +811,7 @@ create table parted_notnull_inh_test1 partition of parted_notnull_inh_test (a no
 insert into parted_notnull_inh_test (b) values (null);
 ERROR:  null value in column "b" of relation "parted_notnull_inh_test1" violates not-null constraint
 DETAIL:  Failing row contains (1, null).
--- note that while b's default is overriden, a's default is preserved
+-- note that while b's default is overridden, a's default is preserved
 \d parted_notnull_inh_test1
       Table "public.parted_notnull_inh_test1"
  Column |  Type   | Collation | Nullable | Default 
index a9e7f2eed56dcc5311ed6211b8eb4e5a8edd69a3..4117fc27c9a5bc104556df8feff178a1af3cc57a 100644 (file)
@@ -558,7 +558,7 @@ WITH objects (classid, objid, objsubid) AS (VALUES
     ('pg_namespace'::regclass, 0, 0), -- no schema
     ('pg_statistic_ext'::regclass, 0, 0), -- no statistics
     ('pg_ts_parser'::regclass, 0, 0), -- no TS parser
-    ('pg_ts_dict'::regclass, 0, 0), -- no TS dictionnary
+    ('pg_ts_dict'::regclass, 0, 0), -- no TS dictionary
     ('pg_ts_template'::regclass, 0, 0), -- no TS template
     ('pg_ts_config'::regclass, 0, 0), -- no TS configuration
     ('pg_authid'::regclass, 0, 0), -- no role
index 4512456eae2bc51ef188222877c8f60511450088..cc0ccd8db1234a9836a9aa42ce82c9f34184acc6 100644 (file)
@@ -180,7 +180,7 @@ CREATE FUNCTION functest_S_13() RETURNS boolean
         SELECT false;
     END;
 
--- check display of function argments in sub-SELECT
+-- check display of function arguments in sub-SELECT
 CREATE TABLE functest1 (i int);
 CREATE FUNCTION functest_S_16(a int, b int) RETURNS void
     LANGUAGE SQL
index 37dac6b5fb93a73a895e0745dac22529dc0d1b27..5175f404f77eba9b170946953d1a594a8312caf0 100644 (file)
@@ -559,7 +559,7 @@ CREATE TABLE part_c_1_10 PARTITION OF part_c FOR VALUES FROM (1) TO (10);
 create table parted_notnull_inh_test (a int default 1, b int not null default 0) partition by list (a);
 create table parted_notnull_inh_test1 partition of parted_notnull_inh_test (a not null, b default 1) for values in (1);
 insert into parted_notnull_inh_test (b) values (null);
--- note that while b's default is overriden, a's default is preserved
+-- note that while b's default is overridden, a's default is preserved
 \d parted_notnull_inh_test1
 drop table parted_notnull_inh_test;
 
index 2f40156eb48e088b8b5256e11bcac1a0f6bc246e..acd0468a9d9f7a5615080e80d84c20a8453ae1e9 100644 (file)
@@ -259,7 +259,7 @@ WITH objects (classid, objid, objsubid) AS (VALUES
     ('pg_namespace'::regclass, 0, 0), -- no schema
     ('pg_statistic_ext'::regclass, 0, 0), -- no statistics
     ('pg_ts_parser'::regclass, 0, 0), -- no TS parser
-    ('pg_ts_dict'::regclass, 0, 0), -- no TS dictionnary
+    ('pg_ts_dict'::regclass, 0, 0), -- no TS dictionary
     ('pg_ts_template'::regclass, 0, 0), -- no TS template
     ('pg_ts_config'::regclass, 0, 0), -- no TS configuration
     ('pg_authid'::regclass, 0, 0), -- no role
index af0cff6a30f886cb65fb95ead1be16017d5f3515..eca1c633359928ed6a4e6ed67747497e9cf2f9d8 100644 (file)
@@ -418,7 +418,7 @@ is( $result, qq(11.11|baz|1
 # application_name to ensure that the walsender is (re)started.
 #
 # Not all of these are registered as tests as we need to poll for a change
-# but the test suite will fail none the less when something goes wrong.
+# but the test suite will fail nonetheless when something goes wrong.
 my $oldpid = $node_publisher->safe_psql('postgres',
        "SELECT pid FROM pg_stat_replication WHERE application_name = 'tap_sub' AND state = 'streaming';"
 );