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

SUMMARY_STATEMENT

Updated on 2024-06-03 GMT+08:00

Obtains all information about executed statements (normalized SQL statements) on the primary database node and other database nodes, as described in Table 1.

Table 1 SUMMARY_STATEMENT columns

Name

Type

Description

node_name

name

Database process name.

node_id

integer

Node ID.

user_name

name

Username.

user_id

oid

OID of the user.

unique_sql_id

bigint

ID of the normalized SQL statement.

query

text

Normalized SQL statement.

Note: The length is controlled by track_activity_query_size.

n_calls

bigint

Number of calls.

min_elapse_time

bigint

Minimum execution time of the SQL statement in the kernel (unit: μs).

max_elapse_time

bigint

Maximum execution time of the SQL statement in the kernel (unit: μs).

total_elapse_time

bigint

Total execution time of the SQL statement in the kernel (unit: μs).

n_returned_rows

bigint

Number of rows in the result set returned by the SELECT statement.

n_tuples_fetched

bigint

Number of rows randomly scanned.

n_tuples_returned

bigint

Number of rows sequentially scanned.

n_tuples_inserted

bigint

Number of rows inserted.

n_tuples_updated

bigint

Number of rows updated.

n_tuples_deleted

bigint

Number of rows deleted.

n_blocks_fetched

bigint

Number of buffer block access times.

n_blocks_hit

bigint

Number of buffer block hits.

n_soft_parse

bigint

Number of soft parsing times.

n_hard_parse

bigint

Number of hard parsing times.

db_time

bigint

Valid DB time, which is accumulated if multiple threads are involved (unit: μs).

cpu_time

bigint

CPU time (unit: μs).

execution_time

bigint

Execution time in the executor (unit: μs).

parse_time

bigint

SQL parsing time (unit: μs).

plan_time

bigint

SQL plan generation time (unit: μs).

rewrite_time

bigint

SQL rewriting time (unit: μs).

pl_execution_time

bigint

Execution time of PL/pgSQL (unit: μs).

pl_compilation_time

bigint

Compilation time of PL/pgSQL (unit: μs).

data_io_time

bigint

I/O time (unit: μs).

net_send_info

text

Network status of messages sent through a physical connection, including the time (unit: μs), number of calls, and throughput (unit: byte). This column is not supported in standalone mode.

net_recv_info

text

Network status of messages received through a physical connection, including the time (unit: μs), number of calls, and throughput (unit: byte). This column is not supported in standalone mode.

net_stream_send_info

text

Network status of messages sent through a logical connection, including the time (unit: μs), number of calls, and throughput (unit: byte). This column is not supported in standalone mode.

net_stream_recv_info

text

Network status of messages received through a logical connection, including the time (unit: μs), number of calls, and throughput (unit: byte). This column is not supported in standalone mode.

last_updated

timestamp with time zone

Last time when the statement was updated.

sort_count

bigint

Sorting count.

sort_time

bigint

Sorting duration (unit: μs).

sort_mem_used

bigint

Size of work memory used during sorting (unit: KB).

sort_spill_count

bigint

Count of file writing when data is flushed to disks during sorting.

sort_spill_size

bigint

File size used when data is flushed to disks during sorting (unit: KB).

hash_count

bigint

Hashing count.

hash_time

bigint

Hashing duration (unit: μs).

hash_mem_used

bigint

Size of work memory used during hashing (unit: KB).

hash_spill_count

bigint

Count of file writing when data is flushed to disks during hashing.

hash_spill_size

bigint

File size used when data is flushed to disks during hashing (unit: KB).

parent_unique_sql_id

bigint

Unique ID of the parent SQL statement. The value is 0 for a non-stored procedure substatement.

lock_wait_time

bigint

SQL lock waiting time (unit: μs).

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