diff options
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/analyze.c | 2 | ||||
-rw-r--r-- | src/backend/commands/vacuumparallel.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/analyze.c b/src/backend/commands/analyze.c index 2b404767bb2..52ef462dba3 100644 --- a/src/backend/commands/analyze.c +++ b/src/backend/commands/analyze.c @@ -707,12 +707,12 @@ do_analyze_rel(Relation onerel, VacuumParams *params, IndexVacuumInfo ivinfo; ivinfo.index = Irel[ind]; + ivinfo.heaprel = onerel; ivinfo.analyze_only = true; ivinfo.estimated_count = true; ivinfo.message_level = elevel; ivinfo.num_heap_tuples = onerel->rd_rel->reltuples; ivinfo.strategy = vac_strategy; - ivinfo.heaprel = onerel; stats = index_vacuum_cleanup(&ivinfo, NULL); diff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c index 2cdbd182b69..563117a8f6e 100644 --- a/src/backend/commands/vacuumparallel.c +++ b/src/backend/commands/vacuumparallel.c @@ -836,13 +836,13 @@ parallel_vacuum_process_one_index(ParallelVacuumState *pvs, Relation indrel, istat = &(indstats->istat); ivinfo.index = indrel; + ivinfo.heaprel = pvs->heaprel; ivinfo.analyze_only = false; ivinfo.report_progress = false; ivinfo.message_level = DEBUG2; ivinfo.estimated_count = pvs->shared->estimated_count; ivinfo.num_heap_tuples = pvs->shared->reltuples; ivinfo.strategy = pvs->bstrategy; - ivinfo.heaprel = pvs->heaprel; /* Update error traceback information */ pvs->indname = pstrdup(RelationGetRelationName(indrel)); |