File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,11 @@ getSchemaData(Archive *fout, int *numTablesPtr)
143143 pg_log_info ("reading schemas" );
144144 (void ) getNamespaces (fout , & numNamespaces );
145145
146- pg_log_info ("reading user-defined packages" );
147- getPackages (fout , & numPkgs );
146+ if (fout -> remoteVersion > 170000 )
147+ {
148+ pg_log_info ("reading user-defined packages" );
149+ getPackages (fout , & numPkgs );
150+ }
148151
149152 /*
150153 * getTables should be done as soon as possible, so as to minimize the
Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ get_rel_infos(ClusterInfo *cluster, DbInfo *dbinfo)
489489 " ((n.nspname !~ '^pg_temp_' AND "
490490 " n.nspname !~ '^pg_toast_temp_' AND "
491491 " n.nspname NOT IN ('pg_catalog', 'information_schema', "
492- " 'binary_upgrade', 'pg_toast') AND "
492+ " 'binary_upgrade', 'pg_toast', 'sys' ) AND "
493493 " c.oid >= %u::pg_catalog.oid) OR "
494494 " (n.nspname = 'pg_catalog' AND "
495495 " relname IN ('pg_largeobject') ))), " ,
You can’t perform that action at this time.
0 commit comments