Commit 4e1ee79e authored by Alexander Korotkov's avatar Alexander Korotkov

Fix typalign in rangetypes statistics

6df7a969 introduces multirange types, whose typanalyze function shares
infrastructure with range types typanalyze function.  Since 6df7a969,
information about type gathered by statistics is filled from typcache.
But typalign is mistakenly always set to double.  This commit fixes this
oversight.
parent eea1e08c
...@@ -330,7 +330,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc, ...@@ -330,7 +330,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
stats->statypid[slot_idx] = typcache->type_id; stats->statypid[slot_idx] = typcache->type_id;
stats->statyplen[slot_idx] = typcache->typlen; stats->statyplen[slot_idx] = typcache->typlen;
stats->statypbyval[slot_idx] = typcache->typbyval; stats->statypbyval[slot_idx] = typcache->typbyval;
stats->statypalign[slot_idx] = 'd'; stats->statypalign[slot_idx] = typcache->typalign;
slot_idx++; slot_idx++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment