Skip to content

Commit 11012c5

Browse files
committed
Fix an assortment of spelling mistakes and typos
Author: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/5812a0b9-b0cf-4151-9a14-d9f00e4f2858@gmail.com
1 parent 50e6eb7 commit 11012c5

File tree

21 files changed

+27
-27
lines changed

21 files changed

+27
-27
lines changed

src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6387,7 +6387,7 @@ heap_inplace_update_and_unlock(Relation relation,
63876387
*
63886388
* ["D" is a VACUUM (ONLY_DATABASE_STATS)]
63896389
* ["R" is a VACUUM tbl]
6390-
* D: vac_update_datfrozenid() -> systable_beginscan(pg_class)
6390+
* D: vac_update_datfrozenxid() -> systable_beginscan(pg_class)
63916391
* D: systable_getnext() returns pg_class tuple of tbl
63926392
* R: memcpy() into pg_class tuple of tbl
63936393
* D: raise pg_database.datfrozenxid, XLogInsert(), finish

src/backend/access/heap/pruneheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2133,7 +2133,7 @@ log_heap_prune_and_freeze(Relation relation, Buffer buffer,
21332133
sizeof(OffsetNumber) * nfrozen);
21342134

21352135
/*
2136-
* Prepare the main xl_heap_prune record. We already set the XLPH_HAS_*
2136+
* Prepare the main xl_heap_prune record. We already set the XLHP_HAS_*
21372137
* flag above.
21382138
*/
21392139
if (RelationIsAccessibleInLogicalDecoding(relation))

src/backend/access/nbtree/nbtutils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@ _bt_preprocess_keys(IndexScanDesc scan)
25842584
{
25852585
inkeys = arrayKeyData;
25862586

2587-
/* Also maintain keyDataMap for remapping so->orderProc[] later */
2587+
/* Also maintain keyDataMap for remapping so->orderProcs[] later */
25882588
keyDataMap = MemoryContextAlloc(so->arrayContext,
25892589
numberOfKeys * sizeof(int));
25902590
}

src/backend/access/transam/xlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ typedef struct XLogCtlData
554554
} XLogCtlData;
555555

556556
/*
557-
* Classification of XLogRecordInsert operations.
557+
* Classification of XLogInsertRecord operations.
558558
*/
559559
typedef enum
560560
{

src/backend/catalog/pg_constraint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1600,7 +1600,7 @@ DeconstructFkConstraintRow(HeapTuple tuple, int *numfks,
16001600
}
16011601

16021602
/*
1603-
* FindFkPeriodOpers -
1603+
* FindFKPeriodOpers -
16041604
*
16051605
* Looks up the operator oids used for the PERIOD part of a temporal foreign key.
16061606
* The opclass should be the opclass of that PERIOD element.

src/backend/catalog/pg_depend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static bool isObjectPinned(const ObjectAddress *object);
3535

3636

3737
/*
38-
* Record a dependency between 2 objects via their respective objectAddress.
38+
* Record a dependency between 2 objects via their respective ObjectAddress.
3939
* The first argument is the dependent object, the second the one it
4040
* references.
4141
*

src/backend/catalog/storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ RelationTruncate(Relation rel, BlockNumber nblocks)
380380
* replay or visibility invariants downstream. The critical section also
381381
* suppresses interrupts.
382382
*
383-
* (See also pg_visibilitymap.c if changing this code.)
383+
* (See also visibilitymap.c if changing this code.)
384384
*/
385385
START_CRIT_SECTION();
386386

src/backend/commands/explain.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,8 +1384,8 @@ ExplainPreScanNode(PlanState *planstate, Bitmapset **rels_used)
13841384
/*
13851385
* plan_is_disabled
13861386
* Checks if the given plan node type was disabled during query planning.
1387-
* This is evident by the disable_node field being higher than the sum of
1388-
* the disabled_node field from the plan's children.
1387+
* This is evident by the disabled_nodes field being higher than the sum of
1388+
* the disabled_nodes field from the plan's children.
13891389
*/
13901390
static bool
13911391
plan_is_disabled(Plan *plan)
@@ -1462,8 +1462,8 @@ plan_is_disabled(Plan *plan)
14621462
}
14631463

14641464
/*
1465-
* It's disabled if the plan's disable_nodes is higher than the sum of its
1466-
* child's plan disabled_nodes.
1465+
* It's disabled if the plan's disabled_nodes is higher than the sum of
1466+
* its child's plan disabled_nodes.
14671467
*/
14681468
if (plan->disabled_nodes > child_disabled_nodes)
14691469
return true;

src/backend/optimizer/path/indxpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2620,7 +2620,7 @@ match_clause_to_index(PlannerInfo *root,
26202620
*
26212621
* It is also possible to match a list of OR clauses if it might be
26222622
* transformed into a single ScalarArrayOpExpr clause. On success,
2623-
* the returning index clause will contain a trasformed clause.
2623+
* the returning index clause will contain a transformed clause.
26242624
*
26252625
* For boolean indexes, it is also possible to match the clause directly
26262626
* to the indexkey; or perhaps the clause is (NOT indexkey).

src/backend/postmaster/postmaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2827,7 +2827,7 @@ PostmasterStateMachine(void)
28272827

28282828
/*
28292829
* In the PM_WAIT_BACKENDS state, wait for all the regular backends and
2830-
* procesess like autovacuum and background workers that are comparable to
2830+
* processes like autovacuum and background workers that are comparable to
28312831
* backends to exit.
28322832
*
28332833
* PM_STOP_BACKENDS is a transient state that means the same as

src/backend/replication/logical/decode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ heap_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
519519
* tuples, we're not interested in the record's contents.
520520
*
521521
* WAL contains likely-unnecessary commit-time invals from the
522-
* CacheInvalidateHeapTuple() call in heap_inplace_update().
523-
* Excess invalidation is safe.
522+
* CacheInvalidateHeapTuple() call in
523+
* heap_inplace_update_and_unlock(). Excess invalidation is safe.
524524
*/
525525
break;
526526

src/backend/statistics/attribute_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ get_attr_stat_type(Oid reloid, AttrNumber attnum, int elevel,
538538
* When analyzing an expression index, believe the expression tree's type
539539
* not the column datatype --- the latter might be the opckeytype storage
540540
* type of the opclass, which is not interesting for our purposes. This
541-
* mimics the behvior of examine_attribute().
541+
* mimics the behavior of examine_attribute().
542542
*/
543543
if (expr == NULL)
544544
{

src/backend/statistics/stat_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo,
243243
/*
244244
* For each argument name/value pair, find corresponding positional
245245
* argument for the argument name, and assign the argument value to
246-
* postitional_fcinfo.
246+
* positional_fcinfo.
247247
*/
248248
for (int i = 0; i < nargs; i += 2)
249249
{

src/backend/storage/lmgr/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
* Interface:
2323
*
24-
* InitLocks(), GetLocksMethodTable(), GetLockTagsMethodTable(),
24+
* LockManagerShmemInit(), GetLocksMethodTable(), GetLockTagsMethodTable(),
2525
* LockAcquire(), LockRelease(), LockReleaseAll(),
2626
* LockCheckConflicts(), GrantLock()
2727
*

src/backend/utils/adt/cash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ append_num_word(StringInfo buf, Cash value)
8585
else
8686
appendStringInfo(buf, "%s %s", big[tu / 10], small[tu % 10]);
8787
}
88-
} /* num_word() */
88+
}
8989

9090
static inline Cash
9191
cash_pl_cash(Cash c1, Cash c2)

src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9347,8 +9347,8 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
93479347
* constraints and the columns in the child don't have their own NOT NULL
93489348
* declarations, we suppress printing constraints in the child: the
93499349
* constraints are acquired at the point where the child is attached to the
9350-
* parent. This is tracked in ->notnull_inh (which is set in flagInhAttrs for
9351-
* servers pre-18).
9350+
* parent. This is tracked in ->notnull_islocal (which is set in flagInhAttrs
9351+
* for servers pre-18).
93529352
*
93539353
* Any of these constraints might have the NO INHERIT bit. If so we set
93549354
* ->notnull_noinh and NO INHERIT will be printed by dumpTableSchema.
@@ -16513,7 +16513,7 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
1651316513
* conislocal. The inhcount is fixed by ALTER TABLE INHERIT,
1651416514
* below. Special hack: in versions < 18, columns with no
1651516515
* local definition need their constraint to be matched by
16516-
* column number in conkeys instead of by contraint name,
16516+
* column number in conkeys instead of by constraint name,
1651716517
* because the latter is not available. (We distinguish the
1651816518
* case because the constraint name is the empty string.)
1651916519
*/

src/bin/pg_rewind/parsexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, int tliIndex,
227227

228228
snprintf(xlogfname, MAXFNAMELEN, XLOGDIR "/");
229229

230-
/* update curent values */
230+
/* update current values */
231231
current_tli = xlogreader->seg.ws_tli;
232232
current_segno = xlogreader->seg.ws_segno;
233233

src/include/catalog/reformat_dat_file.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
# if you need to. In the following example, the "next if !ref $row"
8585
# check below is a hack to filter out non-hash objects. This is because
8686
# we build the lookup tables from data that we read using the
87-
# "preserve_formatting" parameter.
87+
# "preserve_comments" parameter.
8888
#
8989
##Index access method lookup.
9090
#my %amnames;

src/include/commands/copyfrom_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ typedef struct CopyFromStateData
9595
* default value */
9696
FmgrInfo *in_functions; /* array of input functions for each attrs */
9797
Oid *typioparams; /* array of element types for in_functions */
98-
ErrorSaveContext *escontext; /* soft error trapper during in_functions
98+
ErrorSaveContext *escontext; /* soft error trapped during in_functions
9999
* execution */
100100
uint64 num_errors; /* total number of rows which contained soft
101101
* errors */

src/include/jit/SectionMemoryManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class SectionMemoryManager : public RTDyldMemoryManager {
153153
/// a default alignment of 16 will be used.
154154
uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment,
155155
unsigned SectionID, StringRef SectionName,
156-
bool isReadOnly) override;
156+
bool IsReadOnly) override;
157157

158158
/// Update section-specific memory permissions and other attributes.
159159
///

src/test/postmaster/t/002_start_stop.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
# postmaster cannot accept() them fast enough. The exact limit
5555
# and behavior depends on the platform. To make this reliable,
5656
# we attempt SSL negotiation on each connection before opening
57-
# next one. The server will reject the SSL negotations, but
57+
# next one. The server will reject the SSL negotiations, but
5858
# when it does so, we know that the backend has been launched
5959
# and we should be able to open another connection.
6060

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy