Updated on 2023-11-27 GMT+08:00

Historical Queries

Going to the Historical Query Page

  1. Log in to the GaussDB(DWS) management console.
  2. On the Clusters page, locate the target cluster.
  3. In the Operation column of the target cluster, click Monitoring Panel.
  4. In the navigation pane on the left, choose Monitoring > History.

    All the historical queries in the current cluster will be displayed.

  • Historical queries can be viewed only in clusters of version 8.1.2 and later.
  • To enable historical query monitoring, choose Settings > Monitoring, click the Monitoring Collection tab, and enable Historical Query Monitoring. For details, see Monitoring Collection.

Checking Historical Queries

In the History area, you can browse all historical query information based on the specified time period, including:

  • Query ID
  • Username
  • Application name
  • Database name
  • Resource pool
  • Submission time
  • Blocking time (ms)
  • Execution time (ms)
  • CPU time (ms)
  • CPU time skew (%)
  • Statement
  • Connected CN
  • Client IP address
  • Query status
  • Completion time
  • Estimated execution time (ms)
  • Cancellation reason

    If you do not want to see historical system queries, you can toggle on Hide System Queries.

Viewing Historical Query Monitoring Details

You can click a historical query ID to view the query details, including the basic information of query statements, real-time and historical resource consumption, SQL description, and query plan.