Fix an assortment of spelling mistakes and typos
authorDavid Rowley <[email protected]>
Wed, 1 Jan 2025 23:42:01 +0000 (12:42 +1300)
committerDavid Rowley <[email protected]>
Wed, 1 Jan 2025 23:42:01 +0000 (12:42 +1300)
Author: Alexander Lakhin <[email protected]>
Discussion: https://postgr.es/m/5812a0b9-b0cf-4151-9a14-d9f00e4f2858@gmail.com

21 files changed:
src/backend/access/heap/heapam.c
src/backend/access/heap/pruneheap.c
src/backend/access/nbtree/nbtutils.c
src/backend/access/transam/xlog.c
src/backend/catalog/pg_constraint.c
src/backend/catalog/pg_depend.c
src/backend/catalog/storage.c
src/backend/commands/explain.c
src/backend/optimizer/path/indxpath.c
src/backend/postmaster/postmaster.c
src/backend/replication/logical/decode.c
src/backend/statistics/attribute_stats.c
src/backend/statistics/stat_utils.c
src/backend/storage/lmgr/lock.c
src/backend/utils/adt/cash.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_rewind/parsexlog.c
src/include/catalog/reformat_dat_file.pl
src/include/commands/copyfrom_internal.h
src/include/jit/SectionMemoryManager.h
src/test/postmaster/t/002_start_stop.pl

index 5be53fa8a09f23caf9f2da77b3da7d79a44f0068..485525f4d646043733fe4d55a0b8c03ff99c6884 100644 (file)
@@ -6387,7 +6387,7 @@ heap_inplace_update_and_unlock(Relation relation,
         *
         * ["D" is a VACUUM (ONLY_DATABASE_STATS)]
         * ["R" is a VACUUM tbl]
-        * D: vac_update_datfrozenid() -> systable_beginscan(pg_class)
+        * D: vac_update_datfrozenxid() -> systable_beginscan(pg_class)
         * D: systable_getnext() returns pg_class tuple of tbl
         * R: memcpy() into pg_class tuple of tbl
         * D: raise pg_database.datfrozenxid, XLogInsert(), finish
index b4687b446c69e4704fa52018e959ff798a7f5b62..5e2d2645dd2f58309291df24c58af0d005da2998 100644 (file)
@@ -2133,7 +2133,7 @@ log_heap_prune_and_freeze(Relation relation, Buffer buffer,
                                                        sizeof(OffsetNumber) * nfrozen);
 
        /*
-        * Prepare the main xl_heap_prune record.  We already set the XLPH_HAS_*
+        * Prepare the main xl_heap_prune record.  We already set the XLHP_HAS_*
         * flag above.
         */
        if (RelationIsAccessibleInLogicalDecoding(relation))
index cacae793a892f2df96f88542b27a6424795f4cbd..268b7b02acdf80b6548c04ee4da3d929c04294e1 100644 (file)
@@ -2584,7 +2584,7 @@ _bt_preprocess_keys(IndexScanDesc scan)
        {
                inkeys = arrayKeyData;
 
-               /* Also maintain keyDataMap for remapping so->orderProc[] later */
+               /* Also maintain keyDataMap for remapping so->orderProcs[] later */
                keyDataMap = MemoryContextAlloc(so->arrayContext,
                                                                                numberOfKeys * sizeof(int));
        }
index cef408af17c3e375e3d33b11524c722c4f08924f..b9ea92a54276dae9e8176ce6da9ffcd49e85bcfb 100644 (file)
@@ -554,7 +554,7 @@ typedef struct XLogCtlData
 } XLogCtlData;
 
 /*
- * Classification of XLogRecordInsert operations.
+ * Classification of XLogInsertRecord operations.
  */
 typedef enum
 {
index 69047885d7409ef6053f3e1ee1112d60d21ba788..0c6ac0be41c921a8280928a5f96515c016db0fa5 100644 (file)
@@ -1600,7 +1600,7 @@ DeconstructFkConstraintRow(HeapTuple tuple, int *numfks,
 }
 
 /*
- * FindFkPeriodOpers -
+ * FindFKPeriodOpers -
  *
  * Looks up the operator oids used for the PERIOD part of a temporal foreign key.
  * The opclass should be the opclass of that PERIOD element.
index 477d589eff2de6139b8f6eac9e8669e29a460f71..c8b11f887e2743b57b4887c24ac8a21d976a9977 100644 (file)
@@ -35,7 +35,7 @@ static bool isObjectPinned(const ObjectAddress *object);
 
 
 /*
- * Record a dependency between 2 objects via their respective objectAddress.
+ * Record a dependency between 2 objects via their respective ObjectAddress.
  * The first argument is the dependent object, the second the one it
  * references.
  *
index 1e13db91538e8d5a6198c7ff37562e2db15b28af..e74b471d4b927c33a90517353d2cf051e3dbc0e3 100644 (file)
@@ -380,7 +380,7 @@ RelationTruncate(Relation rel, BlockNumber nblocks)
         * replay or visibility invariants downstream.  The critical section also
         * suppresses interrupts.
         *
-        * (See also pg_visibilitymap.c if changing this code.)
+        * (See also visibilitymap.c if changing this code.)
         */
        START_CRIT_SECTION();
 
index 52c36d55df211d9b43bed676688602d228965469..c24e66f82e1cedbe4a84aa6ad39412c95bdfc7cc 100644 (file)
@@ -1384,8 +1384,8 @@ ExplainPreScanNode(PlanState *planstate, Bitmapset **rels_used)
 /*
  * plan_is_disabled
  *             Checks if the given plan node type was disabled during query planning.
- *             This is evident by the disable_node field being higher than the sum of
- *             the disabled_node field from the plan's children.
+ *             This is evident by the disabled_nodes field being higher than the sum of
+ *             the disabled_nodes field from the plan's children.
  */
 static bool
 plan_is_disabled(Plan *plan)
@@ -1462,8 +1462,8 @@ plan_is_disabled(Plan *plan)
        }
 
        /*
-        * It's disabled if the plan's disable_nodes is higher than the sum of its
-        * child's plan disabled_nodes.
+        * It's disabled if the plan's disabled_nodes is higher than the sum of
+        * its child's plan disabled_nodes.
         */
        if (plan->disabled_nodes > child_disabled_nodes)
                return true;
index 028b832f655597ece904666ff3dd5e8dc0b71ee7..5f428e835b002f02a4406269197d44e1ff08e207 100644 (file)
@@ -2620,7 +2620,7 @@ match_clause_to_index(PlannerInfo *root,
  *
  *       It is also possible to match a list of OR clauses if it might be
  *       transformed into a single ScalarArrayOpExpr clause.  On success,
- *       the returning index clause will contain a trasformed clause.
+ *       the returning index clause will contain a transformed clause.
  *
  *       For boolean indexes, it is also possible to match the clause directly
  *       to the indexkey; or perhaps the clause is (NOT indexkey).
index b50842d712efaec184d522a883f53f828e5e6002..0a915dac4f76ddd0b8edc0754ab3fbe5b45eec6c 100644 (file)
@@ -2827,7 +2827,7 @@ PostmasterStateMachine(void)
 
        /*
         * In the PM_WAIT_BACKENDS state, wait for all the regular backends and
-        * procesess like autovacuum and background workers that are comparable to
+        * processes like autovacuum and background workers that are comparable to
         * backends to exit.
         *
         * PM_STOP_BACKENDS is a transient state that means the same as
index 934a795e323b0ca124a374ed84c2894ebc7b88b5..0bff0f106529f50ea693dadcafe65a91b56113d6 100644 (file)
@@ -519,8 +519,8 @@ heap_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
                         * tuples, we're not interested in the record's contents.
                         *
                         * WAL contains likely-unnecessary commit-time invals from the
-                        * CacheInvalidateHeapTuple() call in heap_inplace_update().
-                        * Excess invalidation is safe.
+                        * CacheInvalidateHeapTuple() call in
+                        * heap_inplace_update_and_unlock(). Excess invalidation is safe.
                         */
                        break;
 
index d0e1a4908356f062bf62307cd3bc2a33dc4b4df4..94f7dd63a03ab4f2fc4c9f50e09b3a855b7eaa11 100644 (file)
@@ -538,7 +538,7 @@ get_attr_stat_type(Oid reloid, AttrNumber attnum, int elevel,
         * When analyzing an expression index, believe the expression tree's type
         * not the column datatype --- the latter might be the opckeytype storage
         * type of the opclass, which is not interesting for our purposes. This
-        * mimics the behvior of examine_attribute().
+        * mimics the behavior of examine_attribute().
         */
        if (expr == NULL)
        {
index 07fb1cef0e6df425a2f24ab6ce9ea3f20964cad3..0d446f55b012f7934d0ba141c7301aefd9dbb2e7 100644 (file)
@@ -243,7 +243,7 @@ stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,
        /*
         * For each argument name/value pair, find corresponding positional
         * argument for the argument name, and assign the argument value to
-        * postitional_fcinfo.
+        * positional_fcinfo.
         */
        for (int i = 0; i < nargs; i += 2)
        {
index 093e20e4eb4d68a471060c1184132d3e19f9c276..3e2f98b371ceef398c15892a47054791a1528202 100644 (file)
@@ -21,7 +21,7 @@
  *
  *     Interface:
  *
- *     InitLocks(), GetLocksMethodTable(), GetLockTagsMethodTable(),
+ *     LockManagerShmemInit(), GetLocksMethodTable(), GetLockTagsMethodTable(),
  *     LockAcquire(), LockRelease(), LockReleaseAll(),
  *     LockCheckConflicts(), GrantLock()
  *
index c1a743b2a6b782ba0199b299ad6974a19f221a6b..611d23f3cb0d8c27b1cf10c9af88fde5574c5c08 100644 (file)
@@ -85,7 +85,7 @@ append_num_word(StringInfo buf, Cash value)
                else
                        appendStringInfo(buf, "%s %s", big[tu / 10], small[tu % 10]);
        }
-}                                                              /* num_word() */
+}
 
 static inline Cash
 cash_pl_cash(Cash c1, Cash c2)
index f0df426f427b18dc45c2fe1cf53454936ec94eb1..8f73a5df9568b8706cd20b72925e49190c5d72e6 100644 (file)
@@ -9347,8 +9347,8 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
  * constraints and the columns in the child don't have their own NOT NULL
  * declarations, we suppress printing constraints in the child: the
  * constraints are acquired at the point where the child is attached to the
- * parent.  This is tracked in ->notnull_inh (which is set in flagInhAttrs for
- * servers pre-18).
+ * parent.  This is tracked in ->notnull_islocal (which is set in flagInhAttrs
+ * for servers pre-18).
  *
  * Any of these constraints might have the NO INHERIT bit.  If so we set
  * ->notnull_noinh and NO INHERIT will be printed by dumpTableSchema.
@@ -16513,7 +16513,7 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
                                 * conislocal.  The inhcount is fixed by ALTER TABLE INHERIT,
                                 * below.  Special hack: in versions < 18, columns with no
                                 * local definition need their constraint to be matched by
-                                * column number in conkeys instead of by contraint name,
+                                * column number in conkeys instead of by constraint name,
                                 * because the latter is not available.  (We distinguish the
                                 * case because the constraint name is the empty string.)
                                 */
index 5b47e896cb938ec71727d86159b76cfec1e451b4..2cd44625ca3687c3e24851b9423569652c8aefa8 100644 (file)
@@ -227,7 +227,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, int tliIndex,
 
                        snprintf(xlogfname, MAXFNAMELEN, XLOGDIR "/");
 
-                       /* update curent values */
+                       /* update current values */
                        current_tli = xlogreader->seg.ws_tli;
                        current_segno = xlogreader->seg.ws_segno;
 
index 45005fd7933e78b43f4e8dc5e7b04254cb44c0fe..0e2e5a278de534a08c8c5074323ffd8516912874 100755 (executable)
@@ -84,7 +84,7 @@ foreach my $datfile (@ARGV)
 # if you need to. In the following example, the "next if !ref $row"
 # check below is a hack to filter out non-hash objects. This is because
 # we build the lookup tables from data that we read using the
-# "preserve_formatting" parameter.
+# "preserve_comments" parameter.
 #
 ##Index access method lookup.
 #my %amnames;
index 81ab8448d79cd7a18b871cde3e71ebcbe99bc559..1d8ac8f62e638d4566232c9718860670380fbee6 100644 (file)
@@ -95,7 +95,7 @@ typedef struct CopyFromStateData
                                                                 * default value */
        FmgrInfo   *in_functions;       /* array of input functions for each attrs */
        Oid                *typioparams;        /* array of element types for in_functions */
-       ErrorSaveContext *escontext;    /* soft error trapper during in_functions
+       ErrorSaveContext *escontext;    /* soft error trapped during in_functions
                                                                         * execution */
        uint64          num_errors;             /* total number of rows which contained soft
                                                                 * errors */
index 93cf97715706377e20c8cc084de4e221bad81e1e..69e4d66e5ee3fc4f8b34e9f930151cb49a354871 100644 (file)
@@ -153,7 +153,7 @@ public:
   /// a default alignment of 16 will be used.
   uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
                                unsigned SectionID, StringRef SectionName,
-                               bool isReadOnly) override;
+                               bool IsReadOnly) override;
 
   /// Update section-specific memory permissions and other attributes.
   ///
index 5f1b1add226c728947f379b2d88ec84a7532aa74..036b296f72b80d9e4d55f843911b7e40e3ceaeca 100644 (file)
@@ -54,7 +54,7 @@ for (my $i = 0; $i <= 20; $i++)
        # postmaster cannot accept() them fast enough. The exact limit
        # and behavior depends on the platform. To make this reliable,
        # we attempt SSL negotiation on each connection before opening
-       # next one. The server will reject the SSL negotations, but
+       # next one. The server will reject the SSL negotiations, but
        # when it does so, we know that the backend has been launched
        # and we should be able to open another connection.