diff --git a/src/bin/gs_guc/cluster_guc.conf b/src/bin/gs_guc/cluster_guc.conf index e480e990f1258601997ad72034330f3694c3570c..ea5f91cb24b742a79feb3e84c33bca28ad3ff5f9 100755 --- a/src/bin/gs_guc/cluster_guc.conf +++ b/src/bin/gs_guc/cluster_guc.conf @@ -594,6 +594,7 @@ enable_ustore|bool|0,0|NULL|Enable to create ustore table| enable_default_ustore_table|bool|0,0|NULL|Enable to create ustore table by default| enable_gtt_concurrent_truncate|bool|0,0|NULL|Enable concurrent truncate table for GTT| foreign_key_checks|bool|0,0|NULL|Enable foreign key check on insert, update or drop operation,only applicable to b-format db.| +unique_checks|bool|0,0|NULL|Enable unique check,only applicable to b-format db.| reserve_space_for_nullable_atts|bool|0,0|NULL|Enable reserve space for nullable attributes, only applicable to ustore| undo_space_limit_size|int|819200,17179869184|kB|Maximum physical space of the undo command| undo_limit_size_per_transaction|int|2048,17179869184|kB|Maximum space for allocating undo resources in a transaction| diff --git a/src/common/backend/utils/misc/guc.cpp b/src/common/backend/utils/misc/guc.cpp index f0653d8367cce30c32c6e8a6e9bff2abfdd5c1af..dcdec4b4dffbcbbaff51618cc6195f83fa6d9a3d 100755 --- a/src/common/backend/utils/misc/guc.cpp +++ b/src/common/backend/utils/misc/guc.cpp @@ -2192,6 +2192,20 @@ static void InitConfigureNamesBool() NULL, NULL }, + {{"unique_checks", + PGC_USERSET, + NODE_ALL, + QUERY_TUNING, + gettext_noop("Enable unique check," + "only applicable to b-format db." + ), + NULL}, + &u_sess->attr.attr_common.unique_checks, + true, + NULL, + NULL, + NULL + }, {{"enable_dump_trigger_definer", PGC_USERSET, NODE_ALL, diff --git a/src/include/knl/knl_guc/knl_session_attr_common.h b/src/include/knl/knl_guc/knl_session_attr_common.h index a12c5c4ea3908f60071f78612e1e350e20999006..de5d03e53be73379e0550be7731aec986a7aca56 100644 --- a/src/include/knl/knl_guc/knl_session_attr_common.h +++ b/src/include/knl/knl_guc/knl_session_attr_common.h @@ -253,6 +253,7 @@ typedef struct knl_session_attr_common { int time_record_level; bool enable_record_nettime; bool foreign_key_checks; + bool unique_checks; bool enable_dump_trigger_definer; #ifdef ENABLE_HTAP bool enable_parallel_populate;