Fix typos and grammar in code and test comments
authorMichael Paquier <michael@paquier.xyz>
Wed, 11 May 2022 06:38:55 +0000 (15:38 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 11 May 2022 06:38:55 +0000 (15:38 +0900)
This fixes the grammar of some comments in a couple of tests (SQL and
TAP), and in some C files.

Author: Justin Pryzby
Discussion: https://postgr.es/m/20220511020334.GH19626@telsasoft.com

12 files changed:
contrib/citext/expected/citext.out
contrib/citext/expected/citext_1.out
contrib/citext/sql/citext.sql
src/backend/executor/execGrouping.c
src/backend/parser/parse_expr.c
src/backend/replication/basebackup_target.c
src/bin/pg_basebackup/bbstreamer_tar.c
src/bin/pg_rewind/t/007_standby_source.pl
src/bin/pg_rewind/t/009_growing_files.pl
src/test/regress/expected/psql.out
src/test/regress/sql/psql.sql
src/test/ssl/t/SSL/Backend/OpenSSL.pm

index 5afcc50920e40492bca312b20b961c960466cb0e..1c55598136324558128ffd53d6d35398ce10ff1f 100644 (file)
@@ -2270,7 +2270,7 @@ SELECT COUNT(*) = 8::bigint AS t FROM try;
 
 INSERT INTO try
 VALUES ( to_char(  now()::timestamp,          'HH12:MI:SS') ),
-       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
+       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
        ( to_char(  '15h 2m 12s'::interval,    'HH24:MI:SS') ),
        ( to_char(  current_date,              '999') ),
        ( to_char(  125::int,                  '999') ),
index 8aa2b9e1dbcceb64821bd3ec2672bfdd984f1e56..4a979d7a0d99ce0eaef78c2ac6d268c84cd03144 100644 (file)
@@ -2270,7 +2270,7 @@ SELECT COUNT(*) = 8::bigint AS t FROM try;
 
 INSERT INTO try
 VALUES ( to_char(  now()::timestamp,          'HH12:MI:SS') ),
-       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
+       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
        ( to_char(  '15h 2m 12s'::interval,    'HH24:MI:SS') ),
        ( to_char(  current_date,              '999') ),
        ( to_char(  125::int,                  '999') ),
index 8c87be6b1d23f52dc7abed8f48e02db3f223cad9..b329253d379f8a40a6f02c367a6888a08635c290 100644 (file)
@@ -696,7 +696,7 @@ SELECT to_timestamp('05 Dec 2000',         'DD Mon YYYY'::citext)
 SELECT COUNT(*) = 8::bigint AS t FROM try;
 INSERT INTO try
 VALUES ( to_char(  now()::timestamp,          'HH12:MI:SS') ),
-       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timetamptz
+       ( to_char(  now() + '1 sec'::interval, 'HH12:MI:SS') ), -- timestamptz
        ( to_char(  '15h 2m 12s'::interval,    'HH24:MI:SS') ),
        ( to_char(  current_date,              '999') ),
        ( to_char(  125::int,                  '999') ),
index 5da4b3753006111a8d417aee23a55b7a0efb2d6a..0cc54a3449e3e118c361b5c76c357d240e66b0cd 100644 (file)
@@ -246,7 +246,7 @@ BuildTupleHashTableExt(PlanState *parent,
 }
 
 /*
- * BuildTupleHashTable is a backwards-compatibilty wrapper for
+ * BuildTupleHashTable is a backwards-compatibility wrapper for
  * BuildTupleHashTableExt(), that allocates the hashtable's metadata in
  * tablecxt. Note that hashtables created this way cannot be reset leak-free
  * with ResetTupleHashTable().
index 33eb19a33fc689d9e50e2fe86a74dcc7d1785f0c..c1f194cc5b0a8cf17f9784bafd536ff993fce2a9 100644 (file)
@@ -4536,7 +4536,7 @@ transformJsonParseExpr(ParseState *pstate, JsonParseExpr *jsexpr)
        else
        {
                /*
-                * Coerce argument to target type using CAST for compatibilty with PG
+                * Coerce argument to target type using CAST for compatibility with PG
                 * function-like CASTs.
                 */
                arg = transformJsonValueExprExt(pstate, jsexpr->expr, JS_FORMAT_JSON,
index cff65611ef68ffd2383da55a6295231903a5a8e6..35202576ae1c4b540f22f81f4e4960a610ed3184 100644 (file)
@@ -1,7 +1,7 @@
 /*-------------------------------------------------------------------------
  *
  * basebackup_target.c
- *       Base backups can be "targetted," which means that they can be sent
+ *       Base backups can be "targeted", which means that they can be sent
  *       somewhere other than to the client which requested the backup.
  *       Furthermore, new targets can be defined by extensions. This file
  *       contains code to support that functionality.
index fcbad579df12e2c458328487799b71b9611a6ab2..ef5586c488fb52f54b064f9c3c598e6bc446b240 100644 (file)
@@ -423,7 +423,7 @@ bbstreamer_tar_archiver_content(bbstreamer *streamer,
                data = buffer;
                len = pad_bytes;
 
-               /* Don't do this agian unless we replace another header. */
+               /* Don't do this again unless we replace another header. */
                mystreamer->rearchive_member = false;
        }
        else if (context == BBSTREAMER_ARCHIVE_TRAILER)
index 47320ea5a6738aa0110f8b25ead5c3b0137f9bf4..f89a4df09d9656af3ec0b9fbe36cd74fee117605 100644 (file)
@@ -141,7 +141,7 @@ move(
 # Restart the node.
 $node_c->start;
 
-# set RewindTest::node_primary to point to the rewinded node, so that we can
+# set RewindTest::node_primary to point to the rewound node, so that we can
 # use check_query()
 $node_primary = $node_c;
 
index 2c81406cc076de9a03e5677ae60b10ea83322f08..a5a58dbe060c5a38de78a012cffea26fb7488982 100644 (file)
@@ -47,7 +47,7 @@ mkdir "$standby_pgdata/tst_both_dir";
 append_to_file "$standby_pgdata/tst_both_dir/file1", 'a';
 
 # Run pg_rewind and pipe the output from the run into the extra file we want
-# to copy. This will ensure that the file is continously growing during the
+# to copy. This will ensure that the file is continuously growing during the
 # copy operation and the result will be an error.
 my $ret = run_log(
        [
index 1c5b5d2763d81b87654742fd4511613b5dacb53a..2a38a93a3b319a100eb3057cb195100be8cdc940 100644 (file)
@@ -5481,7 +5481,7 @@ INSERT INTO bla VALUES ('Susie');         -- succeeds
 INSERT INTO bla VALUES ('Rosalyn') \;     -- will rollback
 SELECT 'before error' AS show \;          -- will show nevertheless!
   SELECT psql_error('boum!') \;           -- failure
-  SELECT 'after error' AS noshow;         -- hidden by preceeding error
+  SELECT 'after error' AS noshow;         -- hidden by preceding error
      show     
 --------------
  before error
index 6fc0ac6bd17de418bd8c228ab2ee8ebf2b46c320..1149c6a839ef756d6fbde6542275ffeb06e1e16c 100644 (file)
@@ -1432,7 +1432,7 @@ INSERT INTO bla VALUES ('Susie');         -- succeeds
 INSERT INTO bla VALUES ('Rosalyn') \;     -- will rollback
 SELECT 'before error' AS show \;          -- will show nevertheless!
   SELECT psql_error('boum!') \;           -- failure
-  SELECT 'after error' AS noshow;         -- hidden by preceeding error
+  SELECT 'after error' AS noshow;         -- hidden by preceding error
 INSERT INTO bla(s) VALUES ('Moe') \;      -- will rollback
   SELECT psql_error('bam!');
 INSERT INTO bla VALUES ('Miss Wormwood'); -- succeeds
index 1546b5081ba7322a610bc87cfd302244e37ab0e4..d6d99fa636a9163a130156fa43d54e1750ecb9ed 100644 (file)
@@ -135,7 +135,7 @@ sub get_sslkey
 =item $backend->set_server_cert(params)
 
 Change the configuration to use given server cert, key and crl file(s). The
-following paramters are supported:
+following parameters are supported:
 
 =over