We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb30542 commit 803655eCopy full SHA for 803655e
src/backend/catalog/index.c
@@ -2793,8 +2793,8 @@ index_update_stats(Relation rel,
2793
double reltuples)
2794
{
2795
bool update_stats;
2796
- BlockNumber relpages;
2797
- BlockNumber relallvisible;
+ BlockNumber relpages = 0; /* keep compiler quiet */
+ BlockNumber relallvisible = 0;
2798
Oid relid = RelationGetRelid(rel);
2799
Relation pg_class;
2800
ScanKeyData key[1];
@@ -2831,8 +2831,6 @@ index_update_stats(Relation rel,
2831
2832
if (rel->rd_rel->relkind != RELKIND_INDEX)
2833
visibilitymap_count(rel, &relallvisible, NULL);
2834
- else /* don't bother for indexes */
2835
- relallvisible = 0;
2836
}
2837
2838
/*
0 commit comments