Skip to content

Commit 61cac71

Browse files
committed
Remove unused totalrows parameter in compute_expr_stats
The totalrows parameter in compute_expr_stats is unused, so remove it. This is a static function, so the parameter can easily be added again if it's ever needed. Author: Ilia Evdokimov <ilya.evdokimov@tantorlabs.ru> Discussion: https://postgr.es/m/667b92d2-f953-4fcb-9377-3765f5b94187@tantorlabs.com
1 parent 3f2d72b commit 61cac71

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

src/backend/statistics/extended_stats.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,8 @@ typedef struct AnlExprData
8989
VacAttrStats *vacattrstat; /* statistics attrs to analyze */
9090
} AnlExprData;
9191

92-
static void compute_expr_stats(Relation onerel, double totalrows,
93-
AnlExprData *exprdata, int nexprs,
94-
HeapTuple *rows, int numrows);
92+
static void compute_expr_stats(Relation onerel, AnlExprData *exprdata,
93+
int nexprs, HeapTuple *rows, int numrows);
9594
static Datum serialize_expr_stats(AnlExprData *exprdata, int nexprs);
9695
static Datum expr_fetch_func(VacAttrStatsP stats, int rownum, bool *isNull);
9796
static AnlExprData *build_expr_data(List *exprs, int stattarget);
@@ -220,9 +219,7 @@ BuildRelationExtStatistics(Relation onerel, bool inh, double totalrows,
220219
exprdata = build_expr_data(stat->exprs, stattarget);
221220
nexprs = list_length(stat->exprs);
222221

223-
compute_expr_stats(onerel, totalrows,
224-
exprdata, nexprs,
225-
rows, numrows);
222+
compute_expr_stats(onerel, exprdata, nexprs, rows, numrows);
226223

227224
exprstats = serialize_expr_stats(exprdata, nexprs);
228225
}
@@ -2107,8 +2104,7 @@ examine_opclause_args(List *args, Node **exprp, Const **cstp,
21072104
* Compute statistics about expressions of a relation.
21082105
*/
21092106
static void
2110-
compute_expr_stats(Relation onerel, double totalrows,
2111-
AnlExprData *exprdata, int nexprs,
2107+
compute_expr_stats(Relation onerel, AnlExprData *exprdata, int nexprs,
21122108
HeapTuple *rows, int numrows)
21132109
{
21142110
MemoryContext expr_context,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy