We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d729f1e commit 766809dCopy full SHA for 766809d
src/backend/catalog/index.c
@@ -2788,8 +2788,8 @@ index_update_stats(Relation rel,
2788
double reltuples)
2789
{
2790
bool update_stats;
2791
- BlockNumber relpages;
2792
- BlockNumber relallvisible;
+ BlockNumber relpages = 0; /* keep compiler quiet */
+ BlockNumber relallvisible = 0;
2793
Oid relid = RelationGetRelid(rel);
2794
Relation pg_class;
2795
ScanKeyData key[1];
@@ -2826,8 +2826,6 @@ index_update_stats(Relation rel,
2826
2827
if (rel->rd_rel->relkind != RELKIND_INDEX)
2828
visibilitymap_count(rel, &relallvisible, NULL);
2829
- else /* don't bother for indexes */
2830
- relallvisible = 0;
2831
}
2832
2833
/*
0 commit comments