SHOW CLUSTER SETTING
The SHOW CLUSTER SETTING
statement candisplay the value of either one or all of thecluster settings. These can also be configuredvia SET CLUSTER SETTING
.
Required privileges
Only members of the admin
role can display cluster settings. By default, the root
user belongs to the admin
role.
Synopsis
Note:
The SHOW
statement for cluster settings is unrelated to the other SHOW
statements: SHOW (session variable)
, SHOW CREATE
, SHOW USERS
, SHOW DATABASES
, SHOW COLUMNS
, SHOW GRANTS
, and SHOW CONSTRAINTS
.
Parameters
Parameter | Description |
---|---|
any_name | The name of the cluster setting (case-insensitive). |
Examples
Showing the value of a single cluster setting
> SHOW CLUSTER SETTING diagnostics.reporting.enabled;
+-------------------------------+
| diagnostics.reporting.enabled |
+-------------------------------+
| true |
+-------------------------------+
(1 row)
Showing the value of all cluster settings
> SHOW ALL CLUSTER SETTINGS;
+------------------------------------------------------+-----------+--------------+--------------------------------------------------------------------------+
| variable | value | setting_type | description |
+------------------------------------------------------+-----------+--------------+--------------------------------------------------------------------------+
| cloudstorage.gs.default.key | | s | if set, JSON key to use during Google Cloud Storage operations |
| cloudstorage.http.custom_ca | | s | custom root CA (appended to system's default CAs) for verifying |
| | | | certificates when interacting with HTTPS storage |
| cloudstorage.timeout | 10m0s | d | the timeout for import/export storage operations |
...
+-------------------------------+---------------+------+--------------------------------------------------------+
See also
当前内容版权归 cockroachlabs.com 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 cockroachlabs.com .