diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-04-03 09:56:20 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-04-03 09:58:47 -0300 |
commit | 5f768045a1a25847a3eea59d309e28c8141aed44 (patch) | |
tree | 04909b83747a0be3e12b3e2429e2c771eba0d674 /src | |
parent | e8abf97af770401934a2fc4887940b76403520f0 (diff) | |
download | postgresql-5f768045a1a25847a3eea59d309e28c8141aed44.tar.gz postgresql-5f768045a1a25847a3eea59d309e28c8141aed44.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/heap/vacuumlazy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index b5b464e4a9d..392b35ebb77 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; |