mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Fix various typos, grammar and code style in comments and docs
This fixes a set of issues that have accumulated over the past months (or years) in various code areas. Most fixes are related to some recent additions, as of the development of v15. Author: Justin Pryzby Discussion: https://postgr.es/m/20220124030001.GQ23027@telsasoft.com
This commit is contained in:
@@ -134,7 +134,7 @@ static int count_distinct_groups(int numrows, SortItem *items,
|
||||
* This bound is at most 25, and approaches 0 as n approaches 0 or N. The
|
||||
* case where n approaches 0 cannot happen in practice, since the sample
|
||||
* size is at least 300. The case where n approaches N corresponds to
|
||||
* sampling the whole the table, in which case it is reasonable to keep
|
||||
* sampling the whole table, in which case it is reasonable to keep
|
||||
* the whole MCV list (have no lower bound), so it makes sense to apply
|
||||
* this formula for all inputs, even though the above derivation is
|
||||
* technically only valid when the right hand side is at least around 10.
|
||||
@@ -295,7 +295,7 @@ statext_mcv_build(StatsBuildData *data, double totalrows, int stattarget)
|
||||
/* Copy the first chunk of groups into the result. */
|
||||
for (i = 0; i < nitems; i++)
|
||||
{
|
||||
/* just pointer to the proper place in the list */
|
||||
/* just point to the proper place in the list */
|
||||
MCVItem *item = &mcvlist->items[i];
|
||||
|
||||
item->values = (Datum *) palloc(sizeof(Datum) * numattrs);
|
||||
@@ -556,7 +556,7 @@ build_column_frequencies(SortItem *groups, int ngroups,
|
||||
|
||||
/*
|
||||
* statext_mcv_load
|
||||
* Load the MCV list for the indicated pg_statistic_ext tuple.
|
||||
* Load the MCV list for the indicated pg_statistic_ext_data tuple.
|
||||
*/
|
||||
MCVList *
|
||||
statext_mcv_load(Oid mvoid, bool inh)
|
||||
@@ -1620,7 +1620,7 @@ mcv_get_match_bitmap(PlannerInfo *root, List *clauses,
|
||||
Assert(mcvlist->nitems <= STATS_MCVLIST_MAX_ITEMS);
|
||||
|
||||
matches = palloc(sizeof(bool) * mcvlist->nitems);
|
||||
memset(matches, !is_or, sizeof(bool) * mcvlist->nitems);
|
||||
memset(matches, !is_or, sizeof(bool) * mcvlist->nitems);
|
||||
|
||||
/*
|
||||
* Loop through the list of clauses, and for each of them evaluate all the
|
||||
|
||||
Reference in New Issue
Block a user