Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11012c5

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 parent50e6eb7 commit11012c5

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 theXLPH_HAS_*
2136+
* Prepare the main xl_heap_prune record. We already set theXLHP_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 ofXLogRecordInsert operations.
557+
* Classification ofXLogInsertRecord operations.
558558
*/
559559
typedefenum
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 respectiveobjectAddress.
38+
* Record a dependency between 2 objects via their respectiveObjectAddress.
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 alsopg_visibilitymap.c if changing this code.)
383+
* (See alsovisibilitymap.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 thedisable_node field being higher than the sum of
1388-
*thedisabled_node field from the plan's children.
1387+
*This is evident by thedisabled_nodes field being higher than the sum of
1388+
*thedisabled_nodes field from the plan's children.
13891389
*/
13901390
staticbool
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'sdisable_nodes is higher than the sum of its
1466-
* child's plan disabled_nodes.
1465+
* It's disabled if the plan'sdisabled_nodes is higher than the sum of
1466+
*itschild'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 atrasformed clause.
2623+
* the returning index clause will contain atransformed 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 thebehvior of examine_attribute().
541+
* mimics thebehavior 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 (inti=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
staticinlineCash
9191
cash_pl_cash(Cashc1,Cashc2)

‎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+
*forservers 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 bycontraint name,
16516+
* column number in conkeys instead of byconstraint 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-
/* updatecurent values */
230+
/* updatecurrent 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 errortrapper during in_functions
98+
ErrorSaveContext*escontext;/* soft errortrapped during in_functions
9999
* execution */
100100
uint64num_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-
boolisReadOnly)override;
156+
boolIsReadOnly)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 SSLnegotations, but
57+
# next one. The server will reject the SSLnegotiations, 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)

[8]ページ先頭

©2009-2025 Movatter.jp