replication_type is only allowed set to 1, to resolve core dump in data send when primary is 1 or 2, and standby is 0

This commit is contained in:
xiong_xjun 2020-12-16 11:09:35 +08:00
parent d66a0a3697
commit 0a67fdbf02
2 changed files with 5 additions and 2 deletions

View File

@ -6675,7 +6675,7 @@ static void init_configure_names_int()
NULL
},
&g_instance.attr.attr_storage.replication_type,
RT_WITH_DUMMY_STANDBY,
RT_WITH_MULTI_STNADBY,
RT_WITH_DUMMY_STANDBY,
RT_NUM,
check_replication_type,
@ -21010,6 +21010,9 @@ static bool check_replication_type(int* newval, void** extra, GucSource source)
errmsg("replication_type is not allowed set 1 "
"in Current Version. Set to default (0).")));
}
} else {
ereport(FATAL, (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
errmsg("replication_type is only allowed set to 1, newval=%d.", *newval)));
}
return true;
}

View File

@ -23,7 +23,7 @@ SELECT name, setting FROM pg_settings WHERE name LIKE 'enable%' ORDER BY name;
enable_codegen_print | off
enable_compress_spill | on
enable_copy_server_files | off
enable_data_replicate | on
enable_data_replicate | off
enable_debug_vacuum | off
enable_delta_store | off
enable_double_write | on