• Data Warehouse Service

dws
  1. Help Center
  2. Data Warehouse Service
  3. Developer Guide
  4. Systems Tables and Views
  5. PG_SESSION_WLMSTAT

PG_SESSION_WLMSTAT

PG_SESSION_WLMSTAT shows the corresponding load management information about the task currently executed by the user.

Table 1 PG_SESSION_WLMSTAT columns

Name

Type

Description

datid

oid

OID of the database this backend is connected to

datname

name

Name of the database the backend is connected to

threadid

bigint

Process ID of the backend

processid

integer

Thread PID of the backend

usesysid

oid

OID of the user logged into the backend

appname

text

Name of the application that is connected to the backend

usename

name

Name of the user logged in to the backend

priority

bigint

Priority of Cgroup where the statement is located

attribute

text

Statement attributes

  • Ordinary: default attribute of a statement before it is parsed by the database
  • Simple: simple statements
  • Complicated: complicated statements
  • Internal: internal statement of the database

block_time

bigint

Pending duration of the statements by now

elapsed_time

bigint

Actual execution duration of the statements by now

total_cpu_time

bigint

Total CPU usage duration of the statement on the DN in the last period

cpu_skew_percent

integer

CPU usage inclination ratio of the statement on the DN in the last period

statement_mem

integer

statement_mem used for executing the statement (reserved column)

active_points

integer

Number of concurrently active points occupied by the statement in the resource pool

dop_value

integer

DOP value obtained by the statement from the resource pool

control_group

text

Cgroup currently used by the statement

status

text

Status of a statement, including:

  • pending: waiting to be executed
  • running: being executed
  • finished: finished normally
  • aborted: terminated unexpectedly.
  • active: normal status except for those above
  • unknown: unknown status

enqueue

text

Current queuing status of the statements, including:

  • Global: queuing in the global queue
  • Respool: queuing in the resource pool queue
  • Transaction: The statements are in the same transaction block.
  • None: The statements are not in the queue.

resource_pool

name

Current resource pool where the statements are located.

query

text

Text of this backend's most recent query If state is active, this column shows the executing query. In all other states, it shows the last query that was executed.