We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bcb9d0 commit 54bc22fCopy full SHA for 54bc22f
src/backend/catalog/index.c
@@ -2783,8 +2783,8 @@ index_update_stats(Relation rel,
2783
double reltuples)
2784
{
2785
bool update_stats;
2786
- BlockNumber relpages;
2787
- BlockNumber relallvisible;
+ BlockNumber relpages = 0; /* keep compiler quiet */
+ BlockNumber relallvisible = 0;
2788
Oid relid = RelationGetRelid(rel);
2789
Relation pg_class;
2790
ScanKeyData key[1];
@@ -2825,8 +2825,6 @@ index_update_stats(Relation rel,
2825
2826
if (rel->rd_rel->relkind != RELKIND_INDEX)
2827
visibilitymap_count(rel, &relallvisible, NULL);
2828
- else /* don't bother for indexes */
2829
- relallvisible = 0;
2830
}
2831
2832
/*
0 commit comments