summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/access/heap/heapam.c2
-rw-r--r--src/backend/access/heap/pruneheap.c2
-rw-r--r--src/backend/access/nbtree/nbtutils.c2
-rw-r--r--src/backend/access/transam/xlog.c2
-rw-r--r--src/backend/catalog/pg_constraint.c2
-rw-r--r--src/backend/catalog/pg_depend.c2
-rw-r--r--src/backend/catalog/storage.c2
-rw-r--r--src/backend/commands/explain.c8
-rw-r--r--src/backend/optimizer/path/indxpath.c2
-rw-r--r--src/backend/postmaster/postmaster.c2
-rw-r--r--src/backend/replication/logical/decode.c4
-rw-r--r--src/backend/statistics/attribute_stats.c2
-rw-r--r--src/backend/statistics/stat_utils.c2
-rw-r--r--src/backend/storage/lmgr/lock.c2
-rw-r--r--src/backend/utils/adt/cash.c2
15 files changed, 19 insertions, 19 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index 5be53fa8a09..485525f4d64 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -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
diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c
index b4687b446c6..5e2d2645dd2 100644
--- a/src/backend/access/heap/pruneheap.c
+++ b/src/backend/access/heap/pruneheap.c
@@ -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))
diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c
index cacae793a89..268b7b02acd 100644
--- a/src/backend/access/nbtree/nbtutils.c
+++ b/src/backend/access/nbtree/nbtutils.c
@@ -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));
}
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index cef408af17c..b9ea92a5427 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -554,7 +554,7 @@ typedef struct XLogCtlData
} XLogCtlData;
/*
- * Classification of XLogRecordInsert operations.
+ * Classification of XLogInsertRecord operations.
*/
typedef enum
{
diff --git a/src/backend/catalog/pg_constraint.c b/src/backend/catalog/pg_constraint.c
index 69047885d74..0c6ac0be41c 100644
--- a/src/backend/catalog/pg_constraint.c
+++ b/src/backend/catalog/pg_constraint.c
@@ -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.
diff --git a/src/backend/catalog/pg_depend.c b/src/backend/catalog/pg_depend.c
index 477d589eff2..c8b11f887e2 100644
--- a/src/backend/catalog/pg_depend.c
+++ b/src/backend/catalog/pg_depend.c
@@ -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.
*
diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c
index 1e13db91538..e74b471d4b9 100644
--- a/src/backend/catalog/storage.c
+++ b/src/backend/catalog/storage.c
@@ -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();
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c
index 52c36d55df2..c24e66f82e1 100644
--- a/src/backend/commands/explain.c
+++ b/src/backend/commands/explain.c
@@ -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;
diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c
index 028b832f655..5f428e835b0 100644
--- a/src/backend/optimizer/path/indxpath.c
+++ b/src/backend/optimizer/path/indxpath.c
@@ -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).
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index b50842d712e..0a915dac4f7 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -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
diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c
index 934a795e323..0bff0f10652 100644
--- a/src/backend/replication/logical/decode.c
+++ b/src/backend/replication/logical/decode.c
@@ -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;
diff --git a/src/backend/statistics/attribute_stats.c b/src/backend/statistics/attribute_stats.c
index d0e1a490835..94f7dd63a03 100644
--- a/src/backend/statistics/attribute_stats.c
+++ b/src/backend/statistics/attribute_stats.c
@@ -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)
{
diff --git a/src/backend/statistics/stat_utils.c b/src/backend/statistics/stat_utils.c
index 07fb1cef0e6..0d446f55b01 100644
--- a/src/backend/statistics/stat_utils.c
+++ b/src/backend/statistics/stat_utils.c
@@ -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)
{
diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index 093e20e4eb4..3e2f98b371c 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -21,7 +21,7 @@
*
* Interface:
*
- * InitLocks(), GetLocksMethodTable(), GetLockTagsMethodTable(),
+ * LockManagerShmemInit(), GetLocksMethodTable(), GetLockTagsMethodTable(),
* LockAcquire(), LockRelease(), LockReleaseAll(),
* LockCheckConflicts(), GrantLock()
*
diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c
index c1a743b2a6b..611d23f3cb0 100644
--- a/src/backend/utils/adt/cash.c
+++ b/src/backend/utils/adt/cash.c
@@ -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)