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

Commit2f8b400

Browse files
author
Richard Guo
committed
Remove unused parameter in lookup_var_attr_stats
The parameter 'rel' in lookup_var_attr_stats was once used to draw anERROR when ANALYZE failed to acquire sufficient data to build extendedstatistics.bf2a691 changed the logic to raise a WARNING in thecaller instead. As a result, this parameter is no longer needed andcan be removed. Since this is a static function, we can always easilyreintroduce the parameter if it's ever needed in the future.Author: Ilia EvdokimovReviewed-by: Fabrízio de Royes MelloDiscussion:https://postgr.es/m/b3880f22-5808-4206-88d4-1553a81c3440@tantorlabs.com
1 parentc758119 commit2f8b400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/statistics/extended_stats.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef struct StatExtEntry
7474

7575

7676
staticList*fetch_statentries_for_relation(Relationpg_statext,Oidrelid);
77-
staticVacAttrStats**lookup_var_attr_stats(Relationrel,Bitmapset*attrs,List*exprs,
77+
staticVacAttrStats**lookup_var_attr_stats(Bitmapset*attrs,List*exprs,
7878
intnvacatts,VacAttrStats**vacatts);
7979
staticvoidstatext_store(OidstatOid,boolinh,
8080
MVNDistinct*ndistinct,MVDependencies*dependencies,
@@ -165,7 +165,7 @@ BuildRelationExtStatistics(Relation onerel, bool inh, double totalrows,
165165
* Check if we can build these stats based on the column analyzed. If
166166
* not, report this fact (except in autovacuum) and move on.
167167
*/
168-
stats=lookup_var_attr_stats(onerel,stat->columns,stat->exprs,
168+
stats=lookup_var_attr_stats(stat->columns,stat->exprs,
169169
natts,vacattrstats);
170170
if (!stats)
171171
{
@@ -293,7 +293,7 @@ ComputeExtStatisticsRows(Relation onerel,
293293
* analyzed. If not, ignore it (don't report anything, we'll do that
294294
* during the actual build BuildRelationExtStatistics).
295295
*/
296-
stats=lookup_var_attr_stats(onerel,stat->columns,stat->exprs,
296+
stats=lookup_var_attr_stats(stat->columns,stat->exprs,
297297
natts,vacattrstats);
298298

299299
if (!stats)
@@ -687,7 +687,7 @@ examine_expression(Node *expr, int stattarget)
687687
* indicate to the caller that the stats should not be built.
688688
*/
689689
staticVacAttrStats**
690-
lookup_var_attr_stats(Relationrel,Bitmapset*attrs,List*exprs,
690+
lookup_var_attr_stats(Bitmapset*attrs,List*exprs,
691691
intnvacatts,VacAttrStats**vacatts)
692692
{
693693
inti=0;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp