Fix some typos and some incorrectly duplicated words
authorDavid Rowley <[email protected]>
Tue, 18 Apr 2023 02:03:30 +0000 (14:03 +1200)
committerDavid Rowley <[email protected]>
Tue, 18 Apr 2023 02:03:49 +0000 (14:03 +1200)
Author: Justin Pryzby
Reviewed-by: David Rowley
Discussion: https://postgr.es/m/[email protected]

20 files changed:
contrib/test_decoding/expected/ddl.out
contrib/test_decoding/sql/ddl.sql
doc/src/sgml/user-manag.sgml
src/backend/optimizer/path/allpaths.c
src/backend/optimizer/util/plancat.c
src/backend/replication/pgoutput/pgoutput.c
src/backend/utils/adt/xid8funcs.c
src/bin/pg_amcheck/t/002_nonesuch.pl
src/bin/pg_basebackup/bbstreamer.h
src/bin/pg_dump/pg_dumpall.c
src/bin/pgbench/pgbench.c
src/include/access/tableam.h
src/include/backup/basebackup_target.h
src/include/replication/output_plugin.h
src/include/storage/s_lock.h
src/test/isolation/specs/serializable-parallel-3.spec
src/test/modules/unsafe_tests/expected/guc_privs.out
src/test/modules/unsafe_tests/sql/guc_privs.sql
src/tools/pg_bsd_indent/tests/elsecomment.0
src/tools/pg_bsd_indent/tests/elsecomment.0.stdout

index 9a28b5ddc5aa7fcdb3ca1c2bb68ba1c03e222a75..d55fb3a667f16d859e6fdccadea20cf2de60bed1 100644 (file)
@@ -428,7 +428,7 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'inc
 -- test whether a known, but not yet logged toplevel xact, followed by a
 -- subxact commit is handled correctly
 BEGIN;
-SELECT pg_current_xact_id() != '0'; -- so no fixed xid apears in the outfile
+SELECT pg_current_xact_id() != '0'; -- so no fixed xid appears in the outfile
  ?column? 
 ----------
  t
index 4f76bed72c1b26aa59538822624311d7f9e9a702..57285a828c7b865641fda05e702a33a113d16309 100644 (file)
@@ -236,7 +236,7 @@ SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'inc
 -- test whether a known, but not yet logged toplevel xact, followed by a
 -- subxact commit is handled correctly
 BEGIN;
-SELECT pg_current_xact_id() != '0'; -- so no fixed xid apears in the outfile
+SELECT pg_current_xact_id() != '0'; -- so no fixed xid appears in the outfile
 SAVEPOINT a;
 INSERT INTO tr_sub(path) VALUES ('4-top-1-#1');
 RELEASE SAVEPOINT a;
index b5e0392ad2789a6e51a3dd53060fdcbdcfebd553..b6c37ccef260fdf9512cec96f0a39e90d913b32e 100644 (file)
@@ -346,7 +346,7 @@ ALTER ROLE myname SET enable_indexscan TO off;
    role using <literal>SET ROLE</literal>. However, since any user who has
    <literal>ADMIN OPTION</literal> on a role can grant membership in that
    role to any other user, the <literal>CREATEROLE</literal> user can gain
-   access to the created role by simplying granting that role back to
+   access to the created role by simply granting that role back to
    themselves with the <literal>INHERIT</literal> and/or <literal>SET</literal>
    options. Thus, the fact that privileges are not inherited by default nor
    is <literal>SET ROLE</literal> granted by default is a safeguard against
index 244957a248385008557698db6e099b7e34d5d161..9bdc70c702e19b9d0693c66c4b95c8fa6998c72d 100644 (file)
@@ -4051,7 +4051,7 @@ recurse_push_qual(Node *setOp, Query *topquery,
  *
  * extra_used_attrs can be passed as non-NULL to mark any columns (offset by
  * FirstLowInvalidHeapAttributeNumber) that we should not remove.  This
- * parameter is modifed by the function, so callers must make a copy if they
+ * parameter is modified by the function, so callers must make a copy if they
  * need to use the passed in Bitmapset after calling this function.
  *
  * To avoid affecting column numbering in the targetlist, we don't physically
index e3824efe9b5f0342e266e21fbbaaeb3bdf8c195d..65adf04c4eb3b890d62af74951ecf16364dfe8bb 100644 (file)
@@ -436,7 +436,7 @@ get_relation_info(PlannerInfo *root, Oid relationObjectId, bool inhparent,
                         * the number-of-tuples estimate to equal the parent table; if it
                         * is partial then we have to use the same methods as we would for
                         * a table, except we can be sure that the index is not larger
-                        * than the table.  We must ignore partitioned indexes here as as
+                        * than the table.  We must ignore partitioned indexes here as
                         * there are not physical indexes.
                         */
                        if (indexRelation->rd_rel->relkind != RELKIND_PARTITIONED_INDEX)
index ebaf555d56928c2779a3a886002068166a60b766..f88389de84730184a9dcae9aa5ad6c1d9a40b3aa 100644 (file)
@@ -1771,7 +1771,7 @@ static void
 pgoutput_stream_stop(struct LogicalDecodingContext *ctx,
                                         ReorderBufferTXN *txn)
 {
-       /* we should be streaming a trasanction */
+       /* we should be streaming a transaction */
        Assert(in_streaming);
 
        OutputPluginPrepareWrite(ctx, true);
index 5d79f838a3e35b7cf7c3c07ad1b4e21df45a7e20..24271dfff738ae532374a37d1fb0fc8628d4fda1 100644 (file)
@@ -678,7 +678,7 @@ pg_xact_status(PG_FUNCTION_ARGS)
                Assert(TransactionIdIsValid(xid));
 
                /*
-                * Like when doing visiblity checks on a row, check whether the
+                * Like when doing visibility checks on a row, check whether the
                 * transaction is still in progress before looking into the CLOG.
                 * Otherwise we would incorrectly return "committed" for a transaction
                 * that is committing and has already updated the CLOG, but hasn't
index 58be2c694d0baa701524ce632fada9458107bde9..e3cfae9cd4ae4a5d905e453302f68f2ef89d2c33 100644 (file)
@@ -324,7 +324,7 @@ $node->command_checks_all(
                qr/pg_amcheck: warning: no connectable databases to check matching "no_such_database\.public\.foo_idx"/,
                qr/pg_amcheck: error: no relations to check/,
        ],
-       'checking otherwise existent objets in the wrong databases');
+       'checking otherwise existent objects in the wrong databases');
 
 
 #########################################
index f5c3c0cfff93cb7c11314170096583e718ce0b01..f999e635d989433260f6a7ea8f368e1288ea9a7a 100644 (file)
@@ -165,7 +165,7 @@ bbstreamer_buffer_bytes(bbstreamer *streamer, const char **data, int *len,
 }
 
 /*
- * This is a convenence method for use when implementing a bbstreamer; it is
+ * This is a convenience method for use when implementing a bbstreamer; it is
  * not for use by outsider callers. It attempts to add enough data to the
  * bbstreamer's buffer to reach a length of target_bytes and adjusts '*len'
  * and '*data' accordingly. It returns true if the target length has been
index 7b7acc804486c9df1c5b69a0516be535adebf969..71a1319865d98efb009ae2808e64b7da79fc496a 100644 (file)
@@ -997,11 +997,11 @@ dumpRoleMembership(PGconn *conn)
        /*
         * 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
+        * role for which it is granting permissions, except for the bootstrap
         * superuser, who can always be named as the grantor.
         *
         * We handle this by considering these grants role by role. For each role,
-        * we initially consider the only allowable grantor to be the boostrap
+        * we initially consider the only allowable grantor to be the bootstrap
         * superuser. Every time we grant ADMIN OPTION on the role to some user,
         * that user also becomes an allowable grantor. We make repeated passes
         * over the grants for the role, each time dumping those whose grantors
index 47b2c87f7f219f349669bcaaaf1de960b10304f9..70ed034e70ac0d472c7703b3659a4f85f4f013be 100644 (file)
@@ -3541,7 +3541,7 @@ printVerboseErrorMessages(CState *st, pg_time_usec_t *now, bool is_retry)
                                                           "ends the failed transaction"));
        appendPQExpBuffer(buf, " (try %u", st->tries);
 
-       /* Print max_tries if it is not unlimitted. */
+       /* Print max_tries if it is not unlimited. */
        if (max_tries)
                appendPQExpBuffer(buf, "/%u", max_tries);
 
@@ -5303,7 +5303,7 @@ GetTableInfo(PGconn *con, bool scale_given)
                pg_log_error_hint("Perhaps you need to do initialization (\"pgbench -i\") in database \"%s\".", PQdb(con));
                exit(1);
        }
-       else                                            /* PQntupes(res) == 1 */
+       else                                            /* PQntuples(res) == 1 */
        {
                /* normal case, extract partition information */
                if (PQgetisnull(res, 0, 1))
index 50ae053f461741b1fe84ad6b1768c6bf6df100cf..bb6d4f03151de2957b4fe7e6f8be320bcef72cc5 100644 (file)
@@ -1895,7 +1895,7 @@ table_relation_toast_am(Relation rel)
  *
  * toastrel is the relation in which the toasted value is stored.
  *
- * valueid identifes which toast value is to be fetched. For the heap,
+ * valueid identifies which toast value is to be fetched. For the heap,
  * this corresponds to the values stored in the chunk_id column.
  *
  * attrsize is the total size of the toast value to be fetched.
index bd2490282bb5a704c87654dc66bab0c8d51372c3..250572f6dde1293fe8cae38789640ad742ad2b87 100644 (file)
@@ -26,7 +26,7 @@ typedef struct BaseBackupTargetHandle BaseBackupTargetHandle;
  * and either throws an error (if the target detail is not valid or some other
  * problem, such as a permissions issue, is detected) or returns a pointer to
  * the data that will be needed to create a bbsink implementing that target.
- * The second argumnt will be NULL if the TARGET_DETAIL option to the
+ * The second argument will be NULL if the TARGET_DETAIL option to the
  * BASE_BACKUP command was not specified.
  *
  * 'get_sink' is a function that creates the bbsink. The first argument
index 2d89d26586e392b99b146ad70ef230e22856a6bd..3ac67293861d1bf8be8a2ca3069c4f184f18bcf0 100644 (file)
@@ -112,7 +112,7 @@ typedef bool (*LogicalDecodeFilterPrepareCB) (struct LogicalDecodingContext *ctx
                                                                                          const char *gid);
 
 /*
- * Callback called for every BEGIN of a prepared trnsaction.
+ * Callback called for every BEGIN of a prepared transaction.
  */
 typedef void (*LogicalDecodeBeginPrepareCB) (struct LogicalDecodingContext *ctx,
                                                                                         ReorderBufferTXN *txn);
index 1f3063995945cf06d8645b6040e9c70e3d0bc412..c9fa84cc43c9dc27b55525694fb6668d8877e5ac 100644 (file)
@@ -321,7 +321,7 @@ tas(volatile slock_t *lock)
 /*
  * Solaris has always run sparc processors in TSO (total store) mode, but
  * linux didn't use to and the *BSDs still don't. So, be careful about
- * acquire/release semantics. The CPU will treat superfluous membars as
+ * acquire/release semantics. The CPU will treat superfluous members as
  * NOPs, so it's just code space.
  */
 #define HAS_TEST_AND_SET
index c27298c24ff0c4d8b449155e7231cfbec894621e..858156c3ffee1f9d0ba01428dcec84cf8f5f2772 100644 (file)
@@ -1,6 +1,6 @@
 # Exercise the case where a read-only serializable transaction has
 # SXACT_FLAG_RO_SAFE set in a parallel query.  This variant is like
-# two copies of #2 running at the same time, and excercises the case
+# two copies of #2 running at the same time, and exercises the case
 # where another transaction has the same xmin, and it is the oldest.
 
 setup
index 54f95b2334adde081687b74c0c8d6327a6637032..f43a1da214e0f650f002501b9fa22009f260b066 100644 (file)
@@ -337,7 +337,7 @@ GRANT SET, ALTER SYSTEM ON PARAMETER
     autovacuum_work_mem, hash_mem_multiplier, max_stack_depth,
     shared_buffers, temp_file_limit, work_mem
 TO regress_host_resource_admin;
--- Check the new role now has privilges on parameters
+-- Check the new role now has privileges on parameters
 SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET, ALTER SYSTEM');
  has_parameter_privilege 
 -------------------------
index 6c7733fc3976393c015781521b5a515916a25d74..7a4fb24b9d1bda5a6a247359e5aa23e86ed87559 100644 (file)
@@ -133,7 +133,7 @@ GRANT SET, ALTER SYSTEM ON PARAMETER
     autovacuum_work_mem, hash_mem_multiplier, max_stack_depth,
     shared_buffers, temp_file_limit, work_mem
 TO regress_host_resource_admin;
--- Check the new role now has privilges on parameters
+-- Check the new role now has privileges on parameters
 SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET, ALTER SYSTEM');
 SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'SET');
 SELECT has_parameter_privilege('regress_host_resource_admin', 'work_mem', 'ALTER SYSTEM');
index 61066c22b586327f749922e4c012173712bb2356..c701f1b8a2c3f620f9154ae542d1077bb1c0caf6 100644 (file)
@@ -1,7 +1,7 @@
 /* $FreeBSD$ */
 /* See r303484 and r309342 */
 void t(void) {
-       /* The two if statements below excercise two different code paths. */
+       /* The two if statements below exercise two different code paths. */
 
        if (1) /* a */ int a; else /* b */ int b;
 
index 7de23be0894de84a9714a45b68ba97d19c0f4ce6..6c3c10ea3d2db57dea18ab36471cb3d153a836e5 100644 (file)
@@ -3,7 +3,7 @@
 void
 t(void)
 {
-       /* The two if statements below excercise two different code paths. */
+       /* The two if statements below exercise two different code paths. */
 
        if (1)                  /* a */
                int             a;