modify default value of max_wal_senders and synchronous_standby_names

This commit is contained in:
chenxiaobin 2020-12-30 17:33:59 +08:00 committed by zhaowenhao
parent 8b4b150031
commit ca44783855
2 changed files with 10 additions and 2 deletions

View File

@ -4921,7 +4921,7 @@ static void InitConfigureNamesInt()
gettext_noop("Sets the maximum number of simultaneously running WAL sender processes."),
NULL},
&g_instance.attr.attr_storage.max_wal_senders,
4,
16,
0,
MAX_BACKENDS,
NULL,
@ -8093,7 +8093,7 @@ static void InitConfigureNamesString()
NULL,
GUC_LIST_INPUT},
&u_sess->attr.attr_storage.SyncRepStandbyNames,
"",
"*",
check_synchronous_standby_names,
assign_synchronous_standby_names,
NULL},

View File

@ -56,6 +56,14 @@ function test_1()
gs_guc set -Z datanode -D $primary_data_dir -c "synchronous_standby_names = 'jane'"
start_cluster
check_asynchronous_commit "datanode1" 4
echo "test synchronous_standby_names = ''"
kill_cluster
gs_guc set -Z datanode -D $primary_data_dir -c "synchronous_commit = on"
gs_guc set -Z datanode -D $primary_data_dir -c "synchronous_standby_names = ''"
gs_guc set -Z datanode -D $primary_data_dir -c "most_available_sync = on"
start_cluster
check_asynchronous_commit "datanode1" 4
}
function tear_down() {