Updated on 2024-10-14 GMT+08:00

SESSION_CPU_RUNTIME

SESSION_CPU_RUNTIME displays CPU usage information about ongoing complex jobs executed by the current user.

Table 1 SESSION_CPU_RUNTIME columns

Name

Type

Description

datid

oid

OID of the database that this backend is connected to

usename

name

Name of the user logged in to the backend

pid

bigint

Backend thread ID

start_time

timestamp with time zone

Time when the statement starts to be executed

min_cpu_time

bigint

Minimum CPU time of the statement across all DNs, in ms

max_cpu_time

bigint

Maximum CPU time of the statement across all DNs, in ms

total_cpu_time

bigint

Total CPU time of the statement across all DNs, in ms

query

text

Statement being executed

node_group

text

Logical cluster of the user running the statement. (The current feature is a lab feature. Contact Huawei technical support before using it.)

top_cpu_dn

text

Top N CPU usage