Skip to content

Commit f8f1bd3

Browse files
committed
pg_upgrade supports IvorySQL V4
1 parent da20af9 commit f8f1bd3

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/bin/pg_dump/common.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/bin/pg_upgrade/info.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 "

0 commit comments

Comments
 (0)