diff --git a/src/bin/gs_guc/cluster_guc.conf b/src/bin/gs_guc/cluster_guc.conf index 264ee08db..c4cf78b24 100644 --- a/src/bin/gs_guc/cluster_guc.conf +++ b/src/bin/gs_guc/cluster_guc.conf @@ -133,7 +133,7 @@ debug_print_plan|bool|0,0|NULL|Only when log level is log or above log, the debu debug_print_rewritten|bool|0,0|NULL|Only when log level is log or above log, the debug information will be output. When parameter set to on, debugging information will be recorded in the server, but not output to the client. By setting client_min_messages and log_min_messages parameters can change the log level.| default_statistics_target|int|-100,10000|NULL|NULL| default_tablespace|string|0,0|NULL|NULL| -default_text_search_config|string|0,0|NULL|NULL| +default_text_search_config|enum|pg_catalog.english,pg_catalog.simple,english,simple|NULL|NULL| default_transaction_deferrable|bool|0,0|NULL|NULL| default_transaction_isolation|enum|serializable,repeatable read,read committed,read uncommitted|NULL|NULL| default_transaction_read_only|bool|0,0|NULL|NULL| diff --git a/src/test/regress/input/password_length.source b/src/test/regress/input/gs_guc_show_error.source similarity index 52% rename from src/test/regress/input/password_length.source rename to src/test/regress/input/gs_guc_show_error.source index 19e62bbd0..3b13d3c38 100644 --- a/src/test/regress/input/password_length.source +++ b/src/test/regress/input/gs_guc_show_error.source @@ -1,2 +1,4 @@ \! @abs_bindir@/gs_guc reload -D @abs_srcdir@/tmp_check/datanode1/ -c "password_min_length=88" -c "password_max_length=32" \! @abs_bindir@/gs_guc reload -D @abs_srcdir@/tmp_check/datanode1/ -c "password_min_length=8" -c "password_max_length=32" +\! @abs_bindir@/gs_guc set -D @abs_srcdir@/tmp_check/datanode1/ -c "default_text_search_config = 'abc'" +\! @abs_bindir@/gs_guc set -D @abs_srcdir@/tmp_check/datanode1/ -c "default_text_search_config = 'pg_catalog.english'" \ No newline at end of file diff --git a/src/test/regress/output/password_length.source b/src/test/regress/output/gs_guc_show_error.source similarity index 52% rename from src/test/regress/output/password_length.source rename to src/test/regress/output/gs_guc_show_error.source index e8c5266d5..146a69c50 100644 --- a/src/test/regress/output/password_length.source +++ b/src/test/regress/output/gs_guc_show_error.source @@ -17,3 +17,14 @@ server signaled Total instances: 1. Failed instances: 0. Success to perform gs_guc! +\! @abs_bindir@/gs_guc set -D @abs_srcdir@/tmp_check/datanode1/ -c "default_text_search_config = 'abc'" +ERROR: The value "abc" is outside the valid range(pg_catalog.english,pg_catalog.simple,english,simple) for parameter "default_text_search_config". +ERROR: The value "'abc'" for parameter "default_text_search_config" is incorrect. +Try "gs_guc --help" for more information. +\! @abs_bindir@/gs_guc set -D @abs_srcdir@/tmp_check/datanode1/ -c "default_text_search_config = 'pg_catalog.english'" +expected instance path: [@abs_srcdir@/tmp_check/datanode1/postgresql.conf] +gs_guc set: default_text_search_config='pg_catalog.english': [@abs_srcdir@/tmp_check/datanode1/postgresql.conf] + +Total instances: 1. Failed instances: 0. +Success to perform gs_guc! + diff --git a/src/test/regress/parallel_schedule10 b/src/test/regress/parallel_schedule10 index 4b057a691..d6134c3a2 100644 --- a/src/test/regress/parallel_schedule10 +++ b/src/test/regress/parallel_schedule10 @@ -80,5 +80,6 @@ test: duplicate_column_index test: initdb # test explain gather test: explain_gather -test: password_length -test: line_operator \ No newline at end of file +test: gs_guc_show_error +test: line_operator +test: synchronous_commit_test \ No newline at end of file