Fix typalign in rangetypes statistics
authorAlexander Korotkov <akorotkov@postgresql.org>
Sun, 20 Dec 2020 21:26:13 +0000 (00:26 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Sun, 20 Dec 2020 21:31:11 +0000 (00:31 +0300)
commit4e1ee79e3182256d9c8ddbc1ce9c4e8419c611ff
treecf382e1820a1374cdef6414d3eee18f10d8e7237
parenteea1e08cfc95bb7e1b7e9f515e73cf75adf147e3
Fix typalign in rangetypes statistics

6df7a9698b introduces multirange types, whose typanalyze function shares
infrastructure with range types typanalyze function.  Since 6df7a9698b,
information about type gathered by statistics is filled from typcache.
But typalign is mistakenly always set to double.  This commit fixes this
oversight.
src/backend/utils/adt/rangetypes_typanalyze.c