Skip to content

Commit 3556c89

Browse files
committed
Oversight in commit b81ffa1.
Should warn if a materialized view may be affected, as well.
1 parent 8a51027 commit 3556c89

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_upgrade/check.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,6 +1911,10 @@ check_for_unicode_update(ClusterInfo *cluster)
19111911
" UNION "
19121912
" SELECT partrelid "
19131913
" FROM pg_partitioned_table, patterns WHERE partexprs::text ~ p "
1914+
" UNION "
1915+
" SELECT ev_class "
1916+
" FROM pg_rewrite, pg_class, patterns "
1917+
" WHERE ev_class = pg_class.oid AND relkind = 'm' AND ev_action::text ~ p"
19141918
" ) s(reloid), pg_class c, pg_namespace n, pg_database d "
19151919
" WHERE s.reloid = c.oid AND c.relnamespace = n.oid AND "
19161920
" d.datname = current_database() AND "

0 commit comments

Comments
 (0)