@@ -928,8 +928,6 @@ main(int argc, char **argv)
928928 /* Let the archiver know how noisy to be */
929929 fout->verbose = g_verbose;
930930
931- pg_log_info("123");
932-
933931
934932 /*
935933 * We allow the server to be back to 8.3, and up to any minor release of
@@ -947,8 +945,6 @@ main(int argc, char **argv)
947945 ConnectDatabase(fout, &dopt.cparams, false, dopt.binary_upgrade);
948946 setup_connection(fout, dumpencoding, dumpsnapshot, use_role);
949947
950- pg_log_info("123");
951-
952948 /*
953949 * Determine whether or not we're interacting with a GP backend.
954950 */
@@ -973,8 +969,6 @@ main(int argc, char **argv)
973969 break;
974970 }
975971
976- pg_log_info("123");
977-
978972 /*
979973 * Disable security label support if server version < v9.1.x (prevents
980974 * access to nonexistent pg_seclabel catalog)
@@ -7347,7 +7341,7 @@ getTables(Archive *fout, int *numTables)
73477341 int i_amname;
73487342 int i_amoid;
73497343 int i_isivm;
7350- // int i_isdynamic;
7344+ int i_isdynamic;
73517345
73527346 /*
73537347 * Find all the tables and table-like objects.
@@ -7468,8 +7462,8 @@ getTables(Archive *fout, int *numTables)
74687462 "%s AS partkeydef, "
74697463 "%s AS ispartition, "
74707464 "%s AS partbound, "
7471- "c.relisivm AS isivm "
7472- // "c.relisdynamic AS isdynamic "
7465+ "c.relisivm AS isivm, "
7466+ "%s "
74737467 "FROM pg_class c "
74747468 "LEFT JOIN pg_depend d ON "
74757469 "(c.relkind = '%c' AND "
@@ -7499,6 +7493,7 @@ getTables(Archive *fout, int *numTables)
74997493 partkeydef,
75007494 ispartition,
75017495 partbound,
7496+ (fout->version.type == Cloudberry && fout->version.version >= 2) ? "c.relisdynamic AS isdynamic " : "false AS isdynamic ",
75027497 RELKIND_SEQUENCE,
75037498 RELKIND_PARTITIONED_TABLE,
75047499 RELKIND_RELATION, RELKIND_SEQUENCE,
@@ -7992,7 +7987,7 @@ getTables(Archive *fout, int *numTables)
79927987 i_amname = PQfnumber(res, "amname");
79937988 i_amoid = PQfnumber(res, "amoid");
79947989 i_isivm = PQfnumber(res, "isivm");
7995- // i_isdynamic = PQfnumber(res, "isdynamic");
7990+ i_isdynamic = PQfnumber(res, "isdynamic");
79967991
79977992 if (dopt->lockWaitTimeout)
79987993 {
@@ -8127,7 +8122,7 @@ getTables(Archive *fout, int *numTables)
81278122 tblinfo[i].ispartition = (strcmp(PQgetvalue(res, i, i_ispartition), "t") == 0);
81288123 tblinfo[i].partbound = pg_strdup(PQgetvalue(res, i, i_partbound));
81298124 tblinfo[i].isivm = (strcmp(PQgetvalue(res, i, i_isivm), "t") == 0);
8130- // tblinfo[i].isdynamic = (strcmp(PQgetvalue(res, i, i_isdynamic), "t") == 0);
8125+ tblinfo[i].isdynamic = (strcmp(PQgetvalue(res, i, i_isdynamic), "t") == 0);
81318126
81328127 /* foreign server */
81338128 tblinfo[i].foreign_server = atooid(PQgetvalue(res, i, i_foreignserver));
0 commit comments