diff options
author | Tom Lane | 2021-05-12 17:14:10 +0000 |
---|---|---|
committer | Tom Lane | 2021-05-12 17:14:10 +0000 |
commit | def5b065ff22a16a80084587613599fe15627213 (patch) | |
tree | 13f424449b7fb90c85659071b6adf4e27ae6d272 /src/backend/statistics/extended_stats.c | |
parent | e6ccd1ce1644d1b40b7981f8bc172394de524f99 (diff) |
Initial pgindent and pgperltidy run for v14.
Also "make reformat-dat-files".
The only change worthy of note is that pgindent messed up the formatting
of launcher.c's struct LogicalRepWorkerId, which led me to notice that
that struct wasn't used at all anymore, so I just took it out.
Diffstat (limited to 'src/backend/statistics/extended_stats.c')
-rw-r--r-- | src/backend/statistics/extended_stats.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c index 5e53783ea66..b05e818ba9e 100644 --- a/src/backend/statistics/extended_stats.c +++ b/src/backend/statistics/extended_stats.c @@ -91,9 +91,9 @@ typedef struct AnlExprData } AnlExprData; static void compute_expr_stats(Relation onerel, double totalrows, - AnlExprData * exprdata, int nexprs, + AnlExprData *exprdata, int nexprs, HeapTuple *rows, int numrows); -static Datum serialize_expr_stats(AnlExprData * exprdata, int nexprs); +static Datum serialize_expr_stats(AnlExprData *exprdata, int nexprs); static Datum expr_fetch_func(VacAttrStatsP stats, int rownum, bool *isNull); static AnlExprData *build_expr_data(List *exprs, int stattarget); @@ -539,9 +539,9 @@ examine_attribute(Node *expr) /* * When analyzing an expression, believe the expression tree's type not - * the column datatype --- the latter might be the opckeytype storage - * type of the opclass, which is not interesting for our purposes. (Note: - * if we did anything with non-expression statistics columns, we'd need to + * the column datatype --- the latter might be the opckeytype storage type + * of the opclass, which is not interesting for our purposes. (Note: if + * we did anything with non-expression statistics columns, we'd need to * figure out where to get the correct type info from, but for now that's * not a problem.) It's not clear whether anyone will care about the * typmod, but we store that too just in case. @@ -1788,16 +1788,16 @@ statext_mcv_clauselist_selectivity(PlannerInfo *root, List *clauses, int varReli * attnums of expressions from it. Ignore it if it's not fully * covered by the chosen statistics. * - * We need to check both attributes and expressions, and reject - * if either is not covered. + * We need to check both attributes and expressions, and reject if + * either is not covered. */ if (!bms_is_subset(list_attnums[listidx], stat->keys) || !stat_covers_expressions(stat, list_exprs[listidx], NULL)) continue; /* - * Now we know the clause is compatible (we have either attnums - * or expressions extracted from it), and was not estimated yet. + * Now we know the clause is compatible (we have either attnums or + * expressions extracted from it), and was not estimated yet. */ /* record simple clauses (single column or expression) */ |