Skip to content

Commit 5cd1272

Browse files
authored
Fix some typos (#10287)
I found these using cspell. It's much more eager than the codespell we run in CI now, so it complains about 718 different words. Most of these can be mechanically pulled from PG and TS source, but for now this looks too much to set up in CI. I'm filing the obvious typos though.
1 parent 5252684 commit 5cd1272

21 files changed

Lines changed: 24 additions & 24 deletions

src/bgw/job_stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ bgw_job_stat_insert_relation(Relation rel, int32 bgw_job_id, bool mark_start,
610610

611611
if (mark_start)
612612
{
613-
/* This is udone by any of the end marks */
613+
/* This is undone by any of the end marks */
614614
values[AttrNumberGetAttrOffset(Anum_bgw_job_stat_last_run_success)] = BoolGetDatum(false);
615615
values[AttrNumberGetAttrOffset(Anum_bgw_job_stat_total_crashes)] = Int64GetDatum(1);
616616
values[AttrNumberGetAttrOffset(Anum_bgw_job_stat_consecutive_crashes)] = Int32GetDatum(1);

src/partition_chunk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ partition_chunk_attach(const Hypertable *ht, const Chunk *chunk)
400400
}
401401

402402
/*
403-
* ExecutoreEnd hook to attach cached partition chunks to their hypertables.
403+
* ExecutorEnd hook to attach cached partition chunks to their hypertables.
404404
*/
405405

406406
static void

src/planner/expand_hypertable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,7 @@ chunk_fully_covered(HypertableRestrictInfo *hri, Chunk const *chunk)
12471247
}
12481248

12491249
/*
1250-
* DimensionRetrictInfo strategy should only be one BTGreaterStrategyNumber
1250+
* DimensionRestrictInfo strategy should only be one BTGreaterStrategyNumber
12511251
* or BTGreaterEqualStrategyNumber on the lower boundary and
12521252
* BTLessStrategyNumber or BTLessEqualStrategyNumber on the upper boundary.
12531253
*

src/planner/planner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ get_parent_rte(const PlannerInfo *root, Index rti)
824824
* related metadata: like chunk_status and pointer to hypertable entry.
825825
* It is okay to cache a pointer to the hypertable, since this cache is
826826
* confined to the lifetime of the query and not used across queries.
827-
* If the parent reolid is known, the caller can specify it to avoid the costly
827+
* If the parent relid is known, the caller can specify it to avoid the costly
828828
* lookup. Otherwise pass InvalidOid.
829829
*/
830830
static BaserelInfoEntry *

src/process_utility.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ check_altertable_add_column_for_compressed(ParseState *parse_state, Hypertable *
394394
case CONSTR_UNIQUE:
395395
break;
396396
/*
397-
* We can safelly ignore NULL constraints because it does nothing
397+
* We can safely ignore NULL constraints because it does nothing
398398
* and according to Postgres docs is useless and exist just for
399399
* compatibility with other database systems
400400
* https://www.postgresql.org/docs/current/ddl-constraints.html#id-1.5.4.6.6

src/process_utility.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ extern void ts_process_utility_set_expect_chunk_modification(bool expect);
5454
* SPI_inside_nonatomic_context function, that would have been sufficient
5555
* for isTopLevel flag, but it currently returns false when SPI connection
5656
* is absent (that is a valid scenario when C procedures are called from
57-
* top-lelev SQL instead of PLPG procedures or DO blocks) so it cannot be
57+
* top-level SQL instead of PLPG procedures or DO blocks) so it cannot be
5858
* used.
5959
*
6060
* To work around this the value of ProcessUtilityContext parameter is

src/ts_catalog/chunk_column_stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ ts_chunk_column_stats_get_chunk_ids_by_scan(DimensionRestrictInfo *dri)
13101310
* (Entry is typically marked "invalid" when a compressed chunk becomes partial
13111311
* due to DML in it.)
13121312
*
1313-
* Also, if we have a valid chunnk with -inf/+inf entries then it matches all
1313+
* Also, if we have a valid chunk with -inf/+inf entries then it matches all
13141314
* queries
13151315
*/
13161316
if (!fd.valid || (fd.range_start == PG_INT64_MIN && fd.range_end == PG_INT64_MAX))

src/ts_catalog/continuous_aggs_watermark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ TS_FUNCTION_INFO_V1(ts_continuous_agg_watermark);
9797
* materialized data and real-time data in the UNION query.
9898
*
9999
* The watermark is stored into `_timescaledb_catalog.continuous_aggs_watermark`
100-
* catalog table by the `refresh_continuous_agregate` procedure. It is defined
100+
* catalog table by the `refresh_continuous_aggregate` procedure. It is defined
101101
* as the end of the last (highest) bucket in the materialized hypertable of a
102102
* continuous aggregate.
103103
*

src/ts_stats/ts_stats_segment.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,8 +519,8 @@ ts_stats_chunk_segment_prepare_upsert(TsStatsChunkSegment *seg, TsStatsRelids re
519519
}
520520

521521
/* at this point we haven't found the chunk so we first check the empty slots.
522-
* they may be taken conncurrently by another process, so they need to be checked
523-
* again. the order of the empty slots are somwewhat ordered as we gathered them
522+
* they may be taken concurrently by another process, so they need to be checked
523+
* again. the order of the empty slots are somewhat ordered as we gathered them
524524
* in the bucket recency order. best to traverse them in this recency order so
525525
* the buckets keep the recency property as much as possible.
526526
*/

tsl/src/chunk_merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ merge_chunks_multidim_allowed(void)
528528
*
529529
* https://github.com/postgres/postgres/commit/9695835538c2c8e9cd0048028b8c85e1bbf5c79c
530530
*
531-
* The fix is part of PG 17.3. Howevever, this still leaves PG 17.0 - 17.2
531+
* The fix is part of PG 17.3. However, this still leaves PG 17.0 - 17.2
532532
* with different behavior.
533533
*
534534
* To make the merge chunks code work for the "broken" versions we make PG

0 commit comments

Comments
 (0)