diff --git a/src/bin/gs_guc/cluster_guc.conf b/src/bin/gs_guc/cluster_guc.conf index 81ab7749c..a7430cce2 100755 --- a/src/bin/gs_guc/cluster_guc.conf +++ b/src/bin/gs_guc/cluster_guc.conf @@ -741,6 +741,7 @@ ss_scrlock_worker_bind_core|string|0,0|NULL|NULL| ss_scrlock_server_bind_core|string|0,0|NULL|NULL| dolphin_server_port|int|1024,65535|NULL|NULL| enable_dolphin_proto|bool|0,0|NULL|NULL| +dolphin_hot_standby|bool|0,0,|NULL|NULL| enable_remote_excute|bool|0,0|NULL|NULL| light_comm|bool|0,0|NULL|NULL| ignore_standby_lsn_window|int|0,2147483647|ms|NULL| diff --git a/src/common/backend/utils/misc/guc/guc_network.cpp b/src/common/backend/utils/misc/guc/guc_network.cpp index 2d3475e89..14cd48b46 100755 --- a/src/common/backend/utils/misc/guc/guc_network.cpp +++ b/src/common/backend/utils/misc/guc/guc_network.cpp @@ -366,6 +366,17 @@ static void InitNetworkConfigureNamesBool() NULL, NULL, NULL}, + {{"dolphin_hot_standby", + PGC_POSTMASTER, + NODE_ALL, + CONN_AUTH_SECURITY, + gettext_noop("Enables connectivity of the standby dolphin protocol"), + NULL}, + &g_instance.attr.attr_network.dolphin_hot_standby, + true, + NULL, + NULL, + NULL}, /* End-of-list marker */ {{NULL, diff --git a/src/include/knl/knl_guc/knl_instance_attr_network.h b/src/include/knl/knl_guc/knl_instance_attr_network.h index 3f966aca9..5c09e4cd1 100644 --- a/src/include/knl/knl_guc/knl_instance_attr_network.h +++ b/src/include/knl/knl_guc/knl_instance_attr_network.h @@ -80,6 +80,7 @@ typedef struct knl_instance_attr_network { #endif bool enable_dolphin_proto; int dolphin_server_port; + bool dolphin_hot_standby; } knl_instance_attr_network; #endif /* SRC_INCLUDE_KNL_KNL_INSTANCE_ATTR_NETWORK_H_ */