使用gs_guc设置default_text_search_config时可以在设置出错时提供更有效报错
This commit is contained in:
@ -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|
|
||||
|
@ -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'"
|
@ -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!
|
||||
|
@ -80,5 +80,6 @@ test: duplicate_column_index
|
||||
test: initdb
|
||||
# test explain gather
|
||||
test: explain_gather
|
||||
test: password_length
|
||||
test: line_operator
|
||||
test: gs_guc_show_error
|
||||
test: line_operator
|
||||
test: synchronous_commit_test
|
Reference in New Issue
Block a user