mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Move heaprel struct field next to index rel field.
Commit 61b313e4
added a heaprel struct member to IndexVacuumInfo, but
placed it last. Move the heaprel struct member next to the index struct
member to improve the code's readability.
Author: Peter Geoghegan <pg@bowt.ie>
Discussion: https://postgr.es/m/CAH2-WznG=TV6S9d3VA=y0vBHbXwnLs9_LLdiML=aNJuHeriwxg@mail.gmail.com
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user