@@ -1056,6 +1056,7 @@ setBabelfishDependenciesForLogicalDatabaseDump(Archive *fout)
10561056 * sys.babelfish_namespace_ext
10571057 * sys.babelfish_extended_properties
10581058 * sys.babelfish_schema_permissions
1059+ * sys.babelfish_identifier_mapping
10591060 * sys.babelfish_partition_function
10601061 * sys.babelfish_partition_scheme
10611062 * sys.babelfish_partition_depend
@@ -1065,6 +1066,7 @@ setBabelfishDependenciesForLogicalDatabaseDump(Archive *fout)
10651066 "FROM pg_class "
10661067 "WHERE relname in ('babelfish_schema_permissions', "
10671068 "'babelfish_namespace_ext', "
1069+ "'babelfish_identifier_mapping', "
10681070 "'babelfish_partition_function', "
10691071 "'babelfish_partition_scheme', "
10701072 "'babelfish_partition_depend', "
@@ -1137,6 +1139,12 @@ addFromClauseForLogicalDatabaseDump(PQExpBuffer buf, TableInfo *tbinfo)
11371139 "ON a.nspname = b.nspname "
11381140 "WHERE b.dbid = %d" ,
11391141 fmtQualifiedDumpable (tbinfo ), bbf_db_id );
1142+ else if (strcmp (tbinfo -> dobj .name , "babelfish_identifier_mapping" ) == 0 )
1143+ appendPQExpBuffer (buf , " FROM ONLY %s a "
1144+ "INNER JOIN sys.babelfish_namespace_ext b "
1145+ "ON a.nspname = b.nspname "
1146+ "WHERE b.dbid = %d" ,
1147+ fmtQualifiedDumpable (tbinfo ), bbf_db_id );
11401148 else if (strcmp (tbinfo -> dobj .name , "babelfish_authid_user_ext" ) == 0 )
11411149 {
11421150 appendPQExpBuffer (buf , " FROM ONLY %s a "
@@ -1200,6 +1208,7 @@ addFromClauseForPhysicalDatabaseDump(PQExpBuffer buf, TableInfo *tbinfo)
12001208 fmtQualifiedDumpable (tbinfo ), babel_init_user );
12011209 else if (strcmp (tbinfo -> dobj .name , "babelfish_domain_mapping" ) == 0 ||
12021210 strcmp (tbinfo -> dobj .name , "babelfish_function_ext" ) == 0 ||
1211+ strcmp (tbinfo -> dobj .name , "babelfish_identifier_mapping" ) == 0 ||
12031212 strcmp (tbinfo -> dobj .name , "babelfish_view_def" ) == 0 ||
12041213 strcmp (tbinfo -> dobj .name , "babelfish_server_options" ) == 0 ||
12051214 strcmp (tbinfo -> dobj .name , "babelfish_extended_properties" ) == 0 ||
0 commit comments