doc-exports/docs/dws/dev/dws_04_0884.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-11-02 09:07:47 +00:00

5.0 KiB

Viewing GUC Parameters

GaussDB(DWS) GUC parameters can control database system behaviors. You can check and adjust the GUC parameters based on your business scenario and data volume.

  • After a cluster is installed, you can check database parameters on the GaussDB(DWS) console.

  • You can also connect to a cluster and run SQL commands to check the GUC parameters.
    • Run the SHOW command.

      Method 2 is limited to querying GUC parameter values of CNs. To view GUC parameter values of DNs, you can utilize Method 1 on the management console.

      To view a certain parameter, run the following command:
      1
      SHOW server_version;
      

      server_version indicates the database version.

      Run the following command to view values of all parameters:
      1
      SHOW ALL;
      
    • Use the pg_settings view.
      To view a certain parameter, run the following command:
      1
      SELECT * FROM pg_settings WHERE NAME='server_version';
      
      Run the following command to view values of all parameters:
      1
      SELECT * FROM pg_settings;