Skip to content

Commit 7f5621d

Browse files
committed
exclude tables in sys schema
1 parent f8f1bd3 commit 7f5621d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/bin/pg_upgrade/info.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,12 +493,11 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
493493
" ON c.relnamespace = n.oid "
494494
" WHERE relkind IN (" CppAsString2(RELKIND_RELATION) ", "
495495
CppAsString2(RELKIND_MATVIEW) ") AND "
496-
/* exclude possible orphaned temp tables and sys tables */
496+
/* exclude possible orphaned temp tables */
497497
" ((n.nspname !~ '^pg_temp_' AND "
498498
" n.nspname !~ '^pg_toast_temp_' AND "
499-
" n.nspname !~ '^sys' AND "
500499
" n.nspname NOT IN ('pg_catalog', 'information_schema', "
501-
" 'binary_upgrade', 'pg_toast') AND "
500+
" 'binary_upgrade', 'pg_toast', 'sys') AND "
502501
" c.oid >= %u::pg_catalog.oid) OR "
503502
" (n.nspname = 'pg_catalog' AND "
504503
" relname IN ('pg_largeobject') ))), ",

0 commit comments

Comments
 (0)