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

Commit61cac71

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 ifit's ever needed.Author: Ilia Evdokimov <ilya.evdokimov@tantorlabs.ru>Discussion:https://postgr.es/m/667b92d2-f953-4fcb-9377-3765f5b94187@tantorlabs.com
1 parent3f2d72b commit61cac71

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-
staticvoidcompute_expr_stats(Relationonerel,doubletotalrows,
93-
AnlExprData*exprdata,intnexprs,
94-
HeapTuple*rows,intnumrows);
92+
staticvoidcompute_expr_stats(Relationonerel,AnlExprData*exprdata,
93+
intnexprs,HeapTuple*rows,intnumrows);
9594
staticDatumserialize_expr_stats(AnlExprData*exprdata,intnexprs);
9695
staticDatumexpr_fetch_func(VacAttrStatsPstats,intrownum,bool*isNull);
9796
staticAnlExprData*build_expr_data(List*exprs,intstattarget);
@@ -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
staticvoid
2110-
compute_expr_stats(Relationonerel,doubletotalrows,
2111-
AnlExprData*exprdata,intnexprs,
2107+
compute_expr_stats(Relationonerel,AnlExprData*exprdata,intnexprs,
21122108
HeapTuple*rows,intnumrows)
21132109
{
21142110
MemoryContextexpr_context,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp