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
Situation Awareness
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

PGXC_WLM_SESSION_INFO

Updated on 2024-12-18 GMT+08:00

PGXC_WLM_SESSION_INFO displays load management information for completed jobs executed on all CNs. The data in this view is obtained from GS_WLM_SESSION_INFO.

Table 1 PGXC_WLM_SESSION_INFO columns

Name

Type

Description

datid

oid

OID of the database the backend is connected to

dbname

text

Name of the database the backend is connected to

schemaname

text

Schema name

nodename

text

Name of the CN where the statement is run

username

text

User name used for connecting to the backend

application_name

text

Name of the application that is connected to the backend

client_addr

inet

IP address of the client connected to this backend. If this column is null, it indicates either that the client is connected via a Unix socket on the server machine or that 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 only be non-null for IP connections, and only when log_hostname is enabled.

client_port

integer

TCP port number used by the client to communicate with the backend. If a Unix socket is used, it is –1.

query_band

text

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

block_time

bigint

Duration that a statement is blocked before being executed, including the statement parsing and optimization duration. The unit is ms.

start_time

timestamp with time zone

Time when the statement starts to be executed

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. Its value can be finished (normal) or aborted (abnormal). The statement status here is the execution status of the database server. If the statement is successfully executed on the database server but an error is reported in the result set, the statement status is finished.

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 used by a statement on a single instance. The unit is MB. This column takes effect only when the GUC parameter enable_dynamic_workload is set to on.

min_peak_memory

integer

Minimum memory peak of a statement across all DNs. The unit is MB.

max_peak_memory

integer

Maximum memory peak of a statement across all DNs. The unit is MB.

average_peak_memory

integer

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

memory_skew_percent

integer

Memory usage skew of a statement among DNs

spill_info

text

Spill information for the statement on all DNs. The options are:

None: The statement has not been spilled to disks on any DNs.

All: The statement has been spilled to disks on all DNs.

[a:b]: The statement has been spilled to disks on a of b DNs.

min_spill_size

integer

Minimum spilled data among all DNs when a spill occurs. The unit is MB. The default value is 0.

max_spill_size

integer

Maximum spilled data among all DNs when a spill occurs. The unit is MB. The default value is 0.

average_spill_size

integer

Average spilled data among all DNs when a spill occurs. The unit is MB. The default value is 0.

spill_skew_percent

integer

DN spill skew when a spill occurs

min_dn_time

bigint

Minimum execution time of a statement across all DNs. The unit is ms.

max_dn_time

bigint

Maximum execution time of a statement across all DNs. The unit is ms.

average_dn_time

bigint

Average execution time of a statement across all DNs. The unit is ms.

dntime_skew_percent

integer

Execution time skew of a statement among DNs.

min_cpu_time

bigint

Minimum CPU time of a statement across all DNs. The unit is ms.

max_cpu_time

bigint

Maximum CPU time of a statement across all DNs. The unit is ms.

total_cpu_time

bigint

Total CPU time of a statement across all DNs. The unit is ms.

cpu_skew_percent

integer

CPU time skew of a statement among DNs.

min_peak_iops

integer

Minimum IOPS peak of a statement across all DNs. 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 a statement across all DNs. 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 a statement across all DNs. 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 across DNs

warning

text

Warning. The following warnings and warnings related to SQL self-diagnosis tuning are displayed:

  1. Spill file size large than 256MB
  2. Broadcast size large than 100MB
  3. Early spill
  4. Spill times is greater than 3
  5. Spill on memory adaptive
  6. Hash table conflict

queryid

bigint

Internal query ID used for statement execution

query

text

Statement to be executed. A maximum of 64 KB of strings can be retained.

query_plan

text

Execution plan of a statement

Specification restrictions:

  1. Execution plans are displayed only for DML statements.
  2. In 8.2.1.100 and later versions, the number of data binding times is added to the execution plans of Parse Bind Execute (PBE) statements to facilitate statement analysis. The number of data binding times is displayed in the format of PBE bind times: Times.

node_group

text

Logical cluster of the user running the statement

pid

bigint

PID of the backend thread for the statement.

lane

text

Fast/Slow lane where the statement is executed

unique_sql_id

bigint

ID of the normalized unique SQL

session_id

text

Unique identifier of a session in the database system. Its format is session_start_time.tid.node_name.

min_read_bytes

bigint

Minimum I/O read bytes of a statement across all DNs. The unit is byte.

max_read_bytes

bigint

Maximum I/O read bytes of a statement across all DNs. The unit is byte.

average_read_bytes

bigint

Average I/O read bytes of a statement across all DNs.

min_write_bytes

bigint

Minimum I/O write bytes of a statement across all DNs.

max_write_bytes

bigint

Maximum I/O write bytes of a statement across all DNs.

average_write_bytes

bigint

Average I/O write bytes of a statement across all DNs.

recv_pkg

bigint

Total number of communication packages received by a statement across all DNs.

send_pkg

bigint

Total number of communication packages sent by a statement across all DNs.

recv_bytes

bigint

Total received data of the statement stream, in byte.

send_bytes

bigint

Total sent data of the statement stream, in byte.

stmt_type

text

Query type corresponding to the statement.

except_info

text

Information about the exception rule triggered by the statement.

parse_time

bigint

Total parsing time before the statement is queued (including lexical and syntax parsing, optimization rewriting, and plan generation time), in milliseconds. This column is only supported in version 8.3.0.100 or later.

unique_plan_id

bigint

ID of the normalized unique plan.

sql_hash

text

Normalized SQL hash.

plan_hash

text

Normalized plan hash.

disk_cache_hit_ratio

numeric(5,2)

Disk cache hit rate. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_disk_read_size

bigint

Total size of data read from disk cache, in MB. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_disk_write_size

bigint

Total size of data written to disk cache, in MB. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_remote_read_size

bigint

Total size of data read remotely from OBS due to disk cache read failure, in MB. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_remote_read_time

bigint

Total number of times data is read remotely from OBS due to disk cache read failure. This column only applies to OBS 3.0 tables and foreign tables.

vfs_scan_bytes

bigint

Total number of bytes scanned by the OBS virtual file system in response to upper-layer requests, in bytes. This column only applies to OBS 3.0 tables and foreign tables.

vfs_remote_read_bytes

bigint

Total number of bytes actually read from OBS by the OBS virtual file system, in bytes. This column only applies to OBS 3.0 tables and foreign tables.

preload_submit_time

bigint

Total time for submitting I/O requests in the prefetching process, in microseconds. This column only applies to OBS 3.0 tables.

preload_wait_time

bigint

Total time for waiting for I/O requests in the prefetching process, in microseconds. This column only applies to OBS 3.0 tables.

preload_wait_count

bigint

Total number of times that the prefetching process waits for I/O requests. This column only applies to OBS 3.0 tables.

disk_cache_load_time

bigint

Total time for reading from disk cache, in microseconds. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_conflict_count

bigint

Number of times a block in the disk cache produces a hash conflict. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_error_count

bigint

Number of disk cache read failures. This column only applies to OBS 3.0 tables and foreign tables.

disk_cache_error_code

bigint

Error code for disk cache read failures. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_avg_rtt

bigint

Average Round Trip Time (RTT) for OBS I/O requests, in microseconds. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_avg_latency

bigint

Average delay for OBS I/O requests, in microseconds. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_latency_gt_1s

bigint

Number of OBS I/O requests with a latency exceeding 1 second. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_latency_gt_10s

bigint

Number of OBS I/O requests with a latency exceeding 10 seconds. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_count

bigint

Total number of OBS I/O requests. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_retry_count

bigint

Total number of retries for OBS I/O requests. This column only applies to OBS 3.0 tables and foreign tables.

obs_io_req_rate_limit_count

bigint

Total number of times OBS I/O requests are flow-controlled. This column only applies to OBS 3.0 tables and foreign tables.

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