File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1919#include "commands/vacuum.h"
2020#include "utils/array.h"
2121#include "utils/datum.h"
22+ #include "utils/lsyscache.h"
2223#include "utils/typcache.h"
2324
2425
@@ -108,11 +109,10 @@ array_typanalyze(PG_FUNCTION_ARGS)
108109 PG_RETURN_BOOL (false);
109110
110111 /*
111- * Check attribute data type is a varlena array.
112+ * Check attribute data type is a varlena array (or a domain over one) .
112113 */
113- element_typeid = stats -> attrtype -> typelem ;
114-
115- if (!OidIsValid (element_typeid ) || stats -> attrtype -> typlen != -1 )
114+ element_typeid = get_base_element_type (stats -> attrtypid );
115+ if (!OidIsValid (element_typeid ))
116116 elog (ERROR , "array_typanalyze was invoked for non-array type %u" ,
117117 stats -> attrtypid );
118118
You can’t perform that action at this time.
0 commit comments