File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1070,6 +1070,7 @@ check_for_incompatible_polymorphics(ClusterInfo *cluster)
10701070 "JOIN pg_proc AS transfn ON transfn.oid=a.aggtransfn "
10711071 "WHERE p.oid >= 16384 "
10721072 "AND a.aggtransfn = ANY(ARRAY[%s]::regprocedure[]) "
1073+ "AND a.aggtranstype = ANY(ARRAY['anyarray', 'anyelement']::regtype[]) "
10731074
10741075 /* Aggregate final functions */
10751076 "UNION ALL "
@@ -1079,13 +1080,15 @@ check_for_incompatible_polymorphics(ClusterInfo *cluster)
10791080 "JOIN pg_proc AS finalfn ON finalfn.oid=a.aggfinalfn "
10801081 "WHERE p.oid >= 16384 "
10811082 "AND a.aggfinalfn = ANY(ARRAY[%s]::regprocedure[]) "
1083+ "AND a.aggtranstype = ANY(ARRAY['anyarray', 'anyelement']::regtype[]) "
10821084
10831085 /* Operators */
10841086 "UNION ALL "
10851087 "SELECT 'operator' AS objkind, op.oid::regoperator::text AS objname "
10861088 "FROM pg_operator AS op "
10871089 "WHERE op.oid >= 16384 "
1088- "AND oprcode = ANY(ARRAY[%s]::regprocedure[]);" ,
1090+ "AND oprcode = ANY(ARRAY[%s]::regprocedure[]) "
1091+ "AND oprleft = ANY(ARRAY['anyarray', 'anyelement']::regtype[]);" ,
10891092 old_polymorphics .data ,
10901093 old_polymorphics .data ,
10911094 old_polymorphics .data );
You can’t perform that action at this time.
0 commit comments