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

Commit8a15e73

Browse files
committed
Fix some grammar and typos in comments and docs
The documentation fixes are backpatched down to where they apply.Author: Justin PryzbyDiscussion:https://postgr.es/m/20201031020801.GD3080@telsasoft.comBackpatch-through: 9.6
1 parent644f0d7 commit8a15e73

File tree

25 files changed

+28
-28
lines changed

25 files changed

+28
-28
lines changed

‎contrib/amcheck/verify_heapam.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ verify_heapam_tupdesc(void)
560560
* Since we do not hold a snapshot, tuple visibility is not a question of
561561
* whether we should be able to see the tuple relative to any particular
562562
* snapshot, but rather a question of whether it is safe and reasonable to
563-
*tocheck the tuple attributes.
563+
* check the tuple attributes.
564564
*
565565
* Some kinds of corruption make it unsafe to check the tuple attributes, for
566566
* example when the line pointer refers to a range of bytes outside the page.
@@ -1342,7 +1342,7 @@ fxid_in_cached_range(FullTransactionId fxid, const HeapCheckContext *ctx)
13421342
}
13431343

13441344
/*
1345-
* Checkswheter a multitransaction ID is in the cached valid range, returning
1345+
* Checkswhether a multitransaction ID is in the cached valid range, returning
13461346
* the nature of the range violation, if any.
13471347
*/
13481348
staticXidBoundsViolation

‎contrib/pgcrypto/pgp-compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ decompress_read(void *priv, PullFilter *src, int len,
291291
* A stream must be terminated by a normal packet. If the last stream
292292
* packet in the source stream is a full packet, a normal empty packet
293293
* must follow. Since the underlying packet reader doesn't know that
294-
* the compressed stream has been ended, we need totoconsume the
294+
* the compressed stream has been ended, we need to consume the
295295
* terminating packet here. This read does not harm even if the
296296
* stream has already ended.
297297
*/

‎doc/src/sgml/auto-explain.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ LOAD 'auto_explain';
200200
<listitem>
201201
<para>
202202
<varname>auto_explain.log_settings</varname> controls whether information
203-
about modified configuration options is printed when execution plan is logged.
203+
about modified configuration options is printed whenanexecution plan is logged.
204204
Only options affecting query planning with value different from the built-in
205205
default value are included in the output. This parameter is off by default.
206206
Only superusers can change this setting.

‎doc/src/sgml/ddl.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3919,7 +3919,7 @@ CREATE INDEX ON measurement (logdate);
39193919

39203920
<para>
39213921
Normally the set of partitions established when initially defining the
3922-
tableare not intended to remain static. It is common to want to
3922+
tableis not intended to remain static. It is common to want to
39233923
remove old partitions of data and periodically add new partitions for
39243924
new data. One of the most important advantages of partitioning is
39253925
precisely that it allows this otherwise painful task to be executed

‎doc/src/sgml/ref/pg_rewind.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ PostgreSQL documentation
7474
<application>pg_rewind</application> with the <literal>-c</literal> option to
7575
automatically retrieve them from the WAL archive. The use of
7676
<application>pg_rewind</application> is not limited to failover, e.g., a standby
77-
server can be promoted, run some write transactions, and thenrewinded
77+
server can be promoted, run some write transactions, and thenrewound
7878
to become a standby again.
7979
</para>
8080

‎src/backend/access/heap/pruneheap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ heap_page_prune(Relation relation, Buffer buffer,
385385

386386

387387
/*
388-
* Performvisiblity checks for heap pruning.
388+
* Performvisibility checks for heap pruning.
389389
*
390390
* This is more complicated than just using GlobalVisTestIsRemovableXid()
391391
* because of old_snapshot_threshold. We only want to increase the threshold

‎src/backend/catalog/namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3853,7 +3853,7 @@ recomputeNamespacePath(void)
38533853
/*
38543854
* We want to detect the case where the effective value of the base search
38553855
* path variables didn't change. As long as we're doing so, we can avoid
3856-
* copying the OID listunncessarily.
3856+
* copying the OID listunnecessarily.
38573857
*/
38583858
if (baseCreationNamespace==firstNS&&
38593859
baseTempCreationPending==temp_missing&&

‎src/backend/catalog/pg_namespace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ NamespaceCreate(const char *nspName, Oid ownerId, bool isTemp)
106106
/* dependency on owner */
107107
recordDependencyOnOwner(NamespaceRelationId,nspoid,ownerId);
108108

109-
/*dependences on roles mentioned in default ACL */
109+
/*dependencies on roles mentioned in default ACL */
110110
recordDependencyOnNewAcl(NamespaceRelationId,nspoid,0,ownerId,nspacl);
111111

112112
/* dependency on extension ... but not for magic temp schemas */

‎src/backend/commands/copy.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,9 +2610,9 @@ CopyMultiInsertInfoFlush(CopyMultiInsertInfo *miinfo, ResultRelInfo *curr_rri)
26102610

26112611
/*
26122612
* Trim the list of tracked buffers down if it exceeds the limit. Here we
2613-
* remove buffers starting with the ones we created first. It seemsmore
2614-
* likely that these older onesare less likely tobe needed than ones
2615-
*that werejust created.
2613+
* remove buffers starting with the ones we created first. It seemsless
2614+
* likely that these older oneswillbe needed thantheones that were
2615+
* just created.
26162616
*/
26172617
while (list_length(miinfo->multiInsertBuffers)>MAX_PARTITION_BUFFERS)
26182618
{

‎src/backend/commands/tablecmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1790,7 +1790,7 @@ ExecuteTruncateGuts(List *explicit_rels, List *relids, List *relids_logged,
17901790
*
17911791
* We put the ResultRelInfos in the es_opened_result_relations list, even
17921792
* though we don't have a range table and don't populate the
1793-
* es_result_relations array. That's abig bogus, but it's enough to make
1793+
* es_result_relations array. That's abit bogus, but it's enough to make
17941794
* ExecGetTriggerResultRel() find them.
17951795
*/
17961796
estate = CreateExecutorState();

‎src/backend/executor/execExpr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3266,7 +3266,7 @@ ExecBuildAggTransCall(ExprState *state, AggState *aggstate,
32663266
*
32673267
* For ordered aggregates:
32683268
*
3269-
* Only need to choose between the faster path for a singleorderred
3269+
* Only need to choose between the faster path for a singleordered
32703270
* column, and the one between multiple columns. Checking strictness etc
32713271
* is done when finalizing the aggregate. See
32723272
* process_ordered_aggregate_{single, multi} and

‎src/backend/executor/nodeIncrementalSort.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ ExecEndIncrementalSort(IncrementalSortState *node)
10971097
ExecClearTuple(node->ss.ss_ScanTupleSlot);
10981098
/* must drop pointer to sort result tuple */
10991099
ExecClearTuple(node->ss.ps.ps_ResultTupleSlot);
1100-
/* must dropstanalone tuple slots from outer node */
1100+
/* must dropstandalone tuple slots from outer node */
11011101
ExecDropSingleTupleTableSlot(node->group_pivot);
11021102
ExecDropSingleTupleTableSlot(node->transfer_tuple);
11031103

‎src/backend/executor/nodeLimit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ ExecLimit(PlanState *pstate)
105105
}
106106

107107
/*
108-
* Tuple at limit is needed forcomparation in subsequent
108+
* Tuple at limit is needed forcomparison in subsequent
109109
* execution to detect ties.
110110
*/
111111
if (node->limitOption==LIMIT_OPTION_WITH_TIES&&

‎src/backend/optimizer/path/allpaths.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2915,7 +2915,7 @@ generate_useful_gather_paths(PlannerInfo *root, RelOptInfo *rel, bool override_r
29152915

29162916
/*
29172917
* If the path has no ordering at all, then we can't use either
2918-
* incremental sort or rely onimplict sorting with a gather
2918+
* incremental sort or rely onimplicit sorting with a gather
29192919
* merge.
29202920
*/
29212921
if (subpath->pathkeys==NIL)

‎src/backend/optimizer/plan/analyzejoins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ remove_rel_from_query(PlannerInfo *root, int relid, Relids joinrelids)
371371
* Likewise remove references from PlaceHolderVar data structures,
372372
* removing any no-longer-needed placeholders entirely.
373373
*
374-
* Removal is a bittricker than it might seem: we can remove PHVs that
374+
* Removal is a bittrickier than it might seem: we can remove PHVs that
375375
* are used at the target rel and/or in the join qual, but not those that
376376
* are used at join partner rels or above the join. It's not that easy to
377377
* distinguish PHVs used at partner rels from those used in the join qual,

‎src/backend/partitioning/partbounds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ merge_matching_partitions(PartitionMap *outer_map, PartitionMap *inner_map,
17831783
if (outer_merged_index >=0&&inner_merged_index >=0)
17841784
{
17851785
/*
1786-
* If themereged partitions are the same, no need to do anything;
1786+
* If themerged partitions are the same, no need to do anything;
17871787
* return the index of the merged partitions. Otherwise, if each of
17881788
* the given partitions has been merged with a dummy partition on the
17891789
* other side, re-map them to either of the two merged partitions.

‎src/backend/postmaster/interrupt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ SignalHandlerForCrashExit(SIGNAL_ARGS)
9292
* Simple signal handler for triggering a long-running background process to
9393
* shut down and exit.
9494
*
95-
* Typically, this handler would be used for SIGTERM, but someprocesess use
95+
* Typically, this handler would be used for SIGTERM, but someprocesses use
9696
* other signals. In particular, the checkpointer exits on SIGUSR2, the
9797
* stats collector on SIGQUIT, and the WAL writer exits on either SIGINT
9898
* or SIGTERM.

‎src/backend/statistics/dependencies.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1305,7 +1305,7 @@ dependencies_clauselist_selectivity(PlannerInfo *root,
13051305

13061306
/*
13071307
* Work out which dependencies we can apply, starting with the
1308-
* widest/stongest ones, and proceeding to smaller/weaker ones.
1308+
* widest/strongest ones, and proceeding to smaller/weaker ones.
13091309
*/
13101310
dependencies= (MVDependency**)palloc(sizeof(MVDependency*)*
13111311
total_ndeps);

‎src/backend/statistics/extended_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ statext_mcv_clauselist_selectivity(PlannerInfo *root, List *clauses, int varReli
14031403
stat_sel=mcv_sel+other_sel;
14041404
CLAMP_PROBABILITY(stat_sel);
14051405

1406-
/* Factor the estimate from this MCV to theoveall estimate. */
1406+
/* Factor the estimate from this MCV to theoverall estimate. */
14071407
sel *=stat_sel;
14081408
}
14091409

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ PrefetchSharedBuffer(SMgrRelation smgr_reln,
560560
* could be used by the caller to avoid the need for a later buffer lookup, but
561561
* it's not pinned, so the caller must recheck it.
562562
*
563-
* 2. If the kernel has been asked to initiate I/O, theinitated_io member is
563+
* 2. If the kernel has been asked to initiate I/O, theinitiated_io member is
564564
* true. Currently there is no way to know if the data was already cached by
565565
* the kernel and therefore didn't really initiate I/O, and no way to know when
566566
* the I/O completes other than using synchronous ReadBuffer().

‎src/backend/utils/adt/varlena.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6180,7 +6180,7 @@ unicode_normalize_func(PG_FUNCTION_ARGS)
61806180
/*
61816181
* Check whether the string is in the specified Unicode normalization form.
61826182
*
6183-
* This is done byconvering the string to the specified normal form and then
6183+
* This is done byconverting the string to the specified normal form and then
61846184
* comparing that to the original string. To speed that up, we also apply the
61856185
* "quick check" algorithm specified in UAX #15, which can give a yes or no
61866186
* answer for many strings by just scanning the string once.

‎src/bin/pg_rewind/parsexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, int tliIndex,
207207
/*
208208
* Check if it is a checkpoint record. This checkpoint record needs to
209209
* be the latest checkpoint before WAL forked and not the checkpoint
210-
* where the primary has been stopped to berewinded.
210+
* where the primary has been stopped to berewound.
211211
*/
212212
info=XLogRecGetInfo(xlogreader)& ~XLR_INFO_MASK;
213213
if (searchptr<forkptr&&

‎src/bin/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4185,7 +4185,7 @@ runInitSteps(const char *initialize_steps)
41854185
}
41864186

41874187
/*
4188-
* Extract pgbench tableinformations into global variables scale,
4188+
* Extract pgbench tableinformation into global variables scale,
41894189
* partition_method and partitions.
41904190
*/
41914191
staticvoid

‎src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7088,7 +7088,7 @@ pgpassfileWarning(PGconn *conn)
70887088
}
70897089

70907090
/*
7091-
* Check if the SSLprocotol value given in input is valid or not.
7091+
* Check if the SSLprotocol value given in input is valid or not.
70927092
* This is used as a sanity check routine for the connection parameters
70937093
* ssl_min_protocol_version and ssl_max_protocol_version.
70947094
*/

‎src/test/modules/dummy_index_am/dummy_index_am.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ dibuild(Relation heap, Relation index, IndexInfo *indexInfo)
153153
}
154154

155155
/*
156-
* Build an empty index for theinitialiation fork.
156+
* Build an empty index for theinitialization fork.
157157
*/
158158
staticvoid
159159
dibuildempty(Relationindex)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp