mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +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:
@ -2711,13 +2711,13 @@ lazy_vacuum_one_index(Relation indrel, IndexBulkDeleteResult *istat,
|
||||
LVSavedErrInfo saved_err_info;
|
||||
|
||||
ivinfo.index = indrel;
|
||||
ivinfo.heaprel = vacrel->rel;
|
||||
ivinfo.analyze_only = false;
|
||||
ivinfo.report_progress = false;
|
||||
ivinfo.estimated_count = true;
|
||||
ivinfo.message_level = DEBUG2;
|
||||
ivinfo.num_heap_tuples = reltuples;
|
||||
ivinfo.strategy = vacrel->bstrategy;
|
||||
ivinfo.heaprel = vacrel->rel;
|
||||
|
||||
/*
|
||||
* Update error traceback information.
|
||||
@ -2760,6 +2760,7 @@ lazy_cleanup_one_index(Relation indrel, IndexBulkDeleteResult *istat,
|
||||
LVSavedErrInfo saved_err_info;
|
||||
|
||||
ivinfo.index = indrel;
|
||||
ivinfo.heaprel = vacrel->rel;
|
||||
ivinfo.analyze_only = false;
|
||||
ivinfo.report_progress = false;
|
||||
ivinfo.estimated_count = estimated_count;
|
||||
@ -2767,7 +2768,6 @@ lazy_cleanup_one_index(Relation indrel, IndexBulkDeleteResult *istat,
|
||||
|
||||
ivinfo.num_heap_tuples = reltuples;
|
||||
ivinfo.strategy = vacrel->bstrategy;
|
||||
ivinfo.heaprel = vacrel->rel;
|
||||
|
||||
/*
|
||||
* Update error traceback information.
|
||||
|
Reference in New Issue
Block a user