File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 @@ -493,9 +493,10 @@ 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 */
496+ /* exclude possible orphaned temp tables and sys tables */
497497 " ((n.nspname !~ '^pg_temp_' AND "
498498 " n.nspname !~ '^pg_toast_temp_' AND "
499+ " n.nspname !~ '^sys' AND "
499500 " n.nspname NOT IN ('pg_catalog', 'information_schema', "
500501 " 'binary_upgrade', 'pg_toast') AND "
501502 " c.oid >= %u::pg_catalog.oid) OR "
You can’t perform that action at this time.
0 commit comments