diff options
| author | Peter Geoghegan | 2023-04-03 18:01:11 +0000 |
|---|---|---|
| committer | Peter Geoghegan | 2023-04-03 18:01:11 +0000 |
| commit | a349b86603e11bad811bec111ec5330b9908e525 (patch) | |
| tree | 395d33ecde5b7412c7b1f89066ae6087ba99913a /src/backend/access/heap | |
| parent | e7e7da2f8d57bbe6c8fb463a9eec51486000ba2e (diff) | |
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 <[email protected]>
Discussion: https://postgr.es/m/CAH2-WznG=TV6S9d3VA=y0vBHbXwnLs9_LLdiML=aNJuHeriwxg@mail.gmail.com
Diffstat (limited to 'src/backend/access/heap')
| -rw-r--r-- | src/backend/access/heap/vacuumlazy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index 3e5d3982c7d..639179aa46d 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -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. |
