To enable SQL diagnosis, enable monitoring on real-time and historical queries on the Queries and History tabs, respectively. For details, see Monitoring Collection.
GUC parameters related to SQL diagnosis are as follows. For details, see "GUC Parameters" in the Data Warehouse Service (DWS) Developer Guide.
If this parameter is enabled without other GUC-related parameters correctly configured, real-time resource consumption cannot be recorded.
If this parameter is set to a small value, more statements will be recorded, causing record expansion and affecting cluster performance.
If the resource monitoring is set to operator-level, performance will be greatly affected.
If this parameter is set to a small value, the batch processing mechanism for dumping kernel statements becomes invalid, affecting the kernel performance.
If this parameter is set to 0, data will not be aged, which will cause storage expansion.
When this parameter is enabled, you are advised to set topsql_retention_time properly to configure the aging time. Otherwise, data in the GS_WLM_SESSION_INFO or GS_WLM_OPERATOR_INFO table will expand.