summaryrefslogtreecommitdiff
path: root/src/backend/commands/analyze.c
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2023-04-03 11:01:11 -0700
committerPeter Geoghegan <pg@bowt.ie>2023-04-03 11:01:11 -0700
commita349b86603e11bad811bec111ec5330b9908e525 (patch)
tree395d33ecde5b7412c7b1f89066ae6087ba99913a /src/backend/commands/analyze.c
parente7e7da2f8d57bbe6c8fb463a9eec51486000ba2e (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 <pg@bowt.ie> Discussion: https://postgr.es/m/CAH2-WznG=TV6S9d3VA=y0vBHbXwnLs9_LLdiML=aNJuHeriwxg@mail.gmail.com
Diffstat (limited to 'src/backend/commands/analyze.c')
-rw-r--r--src/backend/commands/analyze.c2
1 files changed, 1 insertions, 1 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);