mirror of
https://github.com/postgres/postgres.git
synced 2025-10-28 11:55:03 +03:00
Fix typalign in rangetypes statistics
6df7a9698bintroduces multirange types, whose typanalyze function shares infrastructure with range types typanalyze function. Since6df7a9698b, information about type gathered by statistics is filled from typcache. But typalign is mistakenly always set to double. This commit fixes this oversight.
This commit is contained in:
@@ -330,7 +330,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
|
||||
stats->statypid[slot_idx] = typcache->type_id;
|
||||
stats->statyplen[slot_idx] = typcache->typlen;
|
||||
stats->statypbyval[slot_idx] = typcache->typbyval;
|
||||
stats->statypalign[slot_idx] = 'd';
|
||||
stats->statypalign[slot_idx] = typcache->typalign;
|
||||
|
||||
slot_idx++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user