提交 323877de 编写于 作者: H Heikki Linnakangas 提交者: Xin Zhang

Fix references to filespaces in pg_upgrade, and re-enable it in ICW.

上级 28917586
......@@ -162,8 +162,7 @@ installcheck-world:
# Verify the filesystem objects are consistent between primary and mirror
$(MAKE) -C contrib/gp_replica_check installcheck
# WALREP_FIXME: pg_upgrade doesn't work yet?
#$(MAKE) -C contrib/pg_upgrade check
$(MAKE) -C contrib/pg_upgrade check
installcheck-resgroup:
$(MAKE) -C src/test/isolation2 $@
......
......@@ -168,7 +168,7 @@ restore_aosegment_tables(migratorContext *ctx)
prep_status(ctx, "Restoring append-only auxiliary tables in new cluster");
/*
* Rebuilding gp_relation_node can potentially take some time in a large
* Rebuilding AO auxiliary tables can potentially take some time in a large
* cluster so swap out the current progress file before starting so that
* the user can see what's going on.
*/
......@@ -188,12 +188,6 @@ restore_aosegment_tables(migratorContext *ctx)
PQclear(executeQueryOrDie(ctx, conn,
"set allow_system_table_mods='dml'"));
/*
* There are further safeguards for gp_relation_node. Bypass those too.
*/
PQclear(executeQueryOrDie(ctx, conn,
"set gp_permit_relation_node_change = on"));
for (relnum = 0; relnum < olddb->rel_arr.nrels; relnum++)
restore_aosegment_table(ctx, conn, &olddb->rel_arr.rels[relnum]);
......
......@@ -58,12 +58,6 @@ install_system_functions_internal(migratorContext *ctx, char *dbname)
"RETURNS VOID "
"AS '$libdir/pg_upgrade_support' "
"LANGUAGE C STRICT;"));
PQclear(executeQueryOrDie(ctx, conn,
"CREATE OR REPLACE FUNCTION "
"binary_upgrade.preassign_filespace_oid(OID, TEXT) "
"RETURNS VOID "
"AS '$libdir/pg_upgrade_support' "
"LANGUAGE C STRICT;"));
PQclear(executeQueryOrDie(ctx, conn,
"CREATE OR REPLACE FUNCTION "
"binary_upgrade.preassign_tablespace_oid(OID, TEXT) "
......
......@@ -145,7 +145,6 @@ create_empty_extension(PG_FUNCTION_ARGS)
Datum preassign_type_oid(PG_FUNCTION_ARGS);
Datum preassign_arraytype_oid(PG_FUNCTION_ARGS);
Datum preassign_extprotocol_oid(PG_FUNCTION_ARGS);
Datum preassign_filespace_oid(PG_FUNCTION_ARGS);
Datum preassign_tablespace_oid(PG_FUNCTION_ARGS);
Datum preassign_opclass_oid(PG_FUNCTION_ARGS);
Datum preassign_conversion_oid(PG_FUNCTION_ARGS);
......@@ -177,7 +176,6 @@ Datum preassign_user_mapping_oid(PG_FUNCTION_ARGS);
PG_FUNCTION_INFO_V1(preassign_type_oid);
PG_FUNCTION_INFO_V1(preassign_arraytype_oid);
PG_FUNCTION_INFO_V1(preassign_extprotocol_oid);
PG_FUNCTION_INFO_V1(preassign_filespace_oid);
PG_FUNCTION_INFO_V1(preassign_tablespace_oid);
PG_FUNCTION_INFO_V1(preassign_opclass_oid);
PG_FUNCTION_INFO_V1(preassign_conversion_oid);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册