From: Alvaro Herrera Date: Wed, 3 Apr 2019 12:56:20 +0000 (-0300) Subject: Correctly initialize newly added struct member X-Git-Tag: REL_12_BETA1~328 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f768045a1a25847a3eea59d309e28c8141aed44;p=postgresql Correctly initialize newly added struct member Valgrind was rightly complaining that IndexVacuumInfo->report_progress (added by commit ab0dfc961b6a) was not being initialized in some code paths. Repair. Per buildfarm member lousyjack. --- diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index b5b464e4a9..392b35ebb7 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -1717,6 +1717,7 @@ lazy_vacuum_index(Relation indrel, ivinfo.index = indrel; ivinfo.analyze_only = false; + ivinfo.report_progress = false; ivinfo.estimated_count = true; ivinfo.message_level = elevel; /* We can only provide an approximate value of num_heap_tuples here */ @@ -1749,6 +1750,7 @@ lazy_cleanup_index(Relation indrel, ivinfo.index = indrel; ivinfo.analyze_only = false; + ivinfo.report_progress = false; ivinfo.estimated_count = (vacrelstats->tupcount_pages < vacrelstats->rel_pages); ivinfo.message_level = elevel;