Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

GS_WLM_SESSION_HISTORY

Updated on 2023-10-23 GMT+08:00

GS_WLM_SESSION_HISTORY displays load management information about all completed jobs executed by the current user on database instances. The current feature is a lab feature. Contact Huawei technical support before using it. Only users with the sysadmin or monitor admin permission can query this view.

Table 1 GS_WLM_SESSION_HISTORY columns

Name

Type

Description

datid

oid

OID of the database this backend is connected to.

dbname

text

Name of the database the backend is connected to.

schemaname

text

Schema name.

nodename

text

Name of the database instance where the statement is executed.

username

text

Username used for connecting to the backend.

application_name

text

Name of the application connected to the backend.

client_addr

inet

IP address of the client connected to the backend. If this column is null, it indicates either the client is connected via a Unix socket on the server or this is an internal process, such as autovacuum.

client_hostname

text

Host name of the connected client, as reported by a reverse DNS lookup of client_addr. This column will be non-null only for IP connections and only when log_hostname is enabled.

client_port

integer

TCP port number that the client uses for communication with this backend (–1 if a Unix socket is used)

query_band

text

Job type, which is specified by the GUC parameter query_band. The default value is a null string.

block_time

bigint

Duration that the statement is blocked before being executed, including the statement parsing and optimization duration (unit: ms)

start_time

timestamp with time zone

Time when the statement starts to be run.

finish_time

timestamp with time zone

Time when the statement execution ends.

duration

bigint

Execution time of a statement. The unit is ms.

estimate_total_time

bigint

Estimated execution time of a statement. The unit is ms.

status

text

Final statement execution status, which can be finished (normal) or aborted (abnormal).

abort_info

text

Exception information displayed if the final statement execution status is aborted.

resource_pool

text

Resource pool used by the user.

control_group

text

Cgroup used by the statement.

estimate_memory

integer

Estimated memory size of the statement.

min_peak_memory

integer

Minimum memory peak of the statement across the database instances, in MB.

max_peak_memory

integer

Maximum memory peak of the statement across the database instances, in MB.

average_peak_memory

integer

Average memory usage during statement execution. The unit is MB.

memory_skew_percent

integer

Memory usage skew of the statement among the database instances.

spill_info

text

Information about statement spill to the database instances:
  • None: The statement has not been spilled to disks on the database instances.
  • All: The statement has been spilled to disks on the database instances.
  • [a:b]: The statement has been spilled to disks on a of b database instances.

min_spill_size

integer

Minimum spilled data among database instances when a spill occurs (unit: MB). Default value: 0

max_spill_size

integer

Maximum spilled data among database instances when a spill occurs (unit: MB). Default value: 0

average_spill_size

integer

Average spilled data among database instances when a spill occurs (unit: MB). Default value: 0

spill_skew_percent

integer

Database instance spill skew when a spill occurs.

min_dn_time

bigint

Minimum execution time of the statement across the database instances (unit: ms).

max_dn_time

bigint

Maximum execution time of the statement across the database instances (unit: ms).

average_dn_time

bigint

Average execution time of the statement across the database instances (unit: ms).

dntime_skew_percent

integer

Execution time skew of the statement among the database instances.

min_cpu_time

bigint

Minimum CPU time of the statement across the database instances (unit: ms).

max_cpu_time

bigint

Maximum CPU time of the statement across the database instances (unit: ms).

total_cpu_time

bigint

Total CPU time of the statement across the database instances (unit: ms).

cpu_skew_percent

integer

CPU time skew of the statement among the database instances.

min_peak_iops

integer

Minimum IOPS peak of the statement across the database instances. It is counted by ones in a column-store table and by ten thousands in a row-store table.

max_peak_iops

integer

Maximum IOPS peak of the statement across the database instances. It is counted by ones in a column-store table and by ten thousands in a row-store table.

average_peak_iops

integer

Average IOPS peak of the statement across the database instances. It is counted by ones in a column-store table and by ten thousands in a row-store table.

iops_skew_percent

integer

I/O skew of the statement among the database instances.

warning

text

Warning. The following warnings are displayed:
  • Spill file size large than 256MB
  • Broadcast size large than 100MB
  • Early spill
  • Spill times is greater than 3
  • Spill on memory adaptive
  • Hash table conflict

queryid

bigint

Internal query ID used for statement execution.

query

text

Statement executed.

query_plan

text

Execution plan of a statement.

node_group

text

Logical database instance of the user to which the statement belongs.

cpu_top1_node_name

text

Name of the node with the 1st CPU usage.

cpu_top2_node_name

text

Name of the node with the 2nd CPU usage.

cpu_top3_node_name

text

Name of the node with the 3rd CPU usage.

cpu_top4_node_name

text

Name of the node with the 4th CPU usage.

cpu_top5_node_name

text

Name of the node with the 5th CPU usage.

mem_top1_node_name

text

Name of the node with the 1st memory usage.

mem_top2_node_name

text

Name of the node with the 2nd memory usage.

mem_top3_node_name

text

Name of the node with the 3rd memory usage.

mem_top4_node_name

text

Name of the node with the 4th memory usage.

mem_top5_node_name

text

Name of the node with the 5th memory usage.

cpu_top1_value

bigint

CPU usage.

cpu_top2_value

bigint

CPU usage.

cpu_top3_value

bigint

CPU usage.

cpu_top4_value

bigint

CPU usage.

cpu_top5_value

bigint

CPU usage.

mem_top1_value

bigint

Memory usage.

mem_top2_value

bigint

Memory usage.

mem_top3_value

bigint

Memory usage.

mem_top4_value

bigint

Memory usage.

mem_top5_value

bigint

Memory usage.

top_mem_dn

text

Top N memory usage.

top_cpu_dn

text

Top N CPU usage.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback