Fix formatting and comment typos
authorJohn Naylor <john.naylor@postgresql.org>
Thu, 4 Aug 2022 09:41:29 +0000 (16:41 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Thu, 4 Aug 2022 09:41:29 +0000 (16:41 +0700)
Justin Pryzby

Discussion: https://www.postgresql.org/message-id/20220801181136.GJ15006%40telsasoft.com

src/backend/commands/dbcommands.c
src/backend/commands/explain.c
src/include/replication/reorderbuffer.h

index 7bc53f3a0bb5cb72fb6f70a6981fe63e5c5c6791..9f990a8d68ff8700b5a4cf0b813224c9768a2a9a 100644 (file)
@@ -188,7 +188,7 @@ CreateDatabaseUsingWalLog(Oid src_dboid, Oid dst_dboid,
 
        /*
         * If the relation is from the source db's default tablespace then we
-        * need to create it in the destinations db's default tablespace.
+        * need to create it in the destination db's default tablespace.
         * Otherwise, we need to create in the same tablespace as it is in the
         * source database.
         */
@@ -1351,8 +1351,8 @@ createdb(ParseState *pstate, const CreatedbStmt *stmt)
    /*
     * If we're going to be reading data for the to-be-created database into
     * shared_buffers, take a lock on it. Nobody should know that this
-    * database exists yet, but it's good to maintain the invariant that a
-    * lock an AccessExclusiveLock on the database is sufficient to drop all
+    * database exists yet, but it's good to maintain the invariant that an
+    * AccessExclusiveLock on the database is sufficient to drop all
     * of its buffers without worrying about more being read later.
     *
     * Note that we need to do this before entering the
index e29c2ae206ff4e10356f1b9f184f93d9c621c702..e078456b191cf51721c335ee57e4809dd501532a 100644 (file)
@@ -3284,7 +3284,6 @@ show_hashagg_info(AggState *aggstate, ExplainState *es)
 
    if (es->format != EXPLAIN_FORMAT_TEXT)
    {
-
        if (es->costs)
            ExplainPropertyInteger("Planned Partitions", NULL,
                                   aggstate->hash_planned_partitions, es);
index d109d0baede0e5e8a6381b0e91f20a454121ce2a..2c9206ace41ab2f7bc11e40de378645854ca97e3 100644 (file)
@@ -262,7 +262,7 @@ typedef struct ReorderBufferTXN
     * aborted. This can be a
     * * plain commit record
     * * plain commit record, of a parent transaction
-    * * prepared tansaction
+    * * prepared transaction
     * * prepared transaction commit
     * * plain abort record
     * * prepared transaction abort