# DBE_PERF.THREAD_WAIT_STATUS
通过该视图可以检测当前节点上工作线程（backend thread）以及辅助线程（auxiliary thread）的阻塞等待情况，如[表1]所示。具体事件信息请参见[表2](https://support.huaweicloud.com/distributed-ref-v10-gaussdb/gaussdb-08-1616.html#ZH-CN_TOPIC_0000002793787503__table572562714157)。
 表1DBE_PERF.THREAD_WAIT_STATUS字段 
| **名称**           | **类型**    | **描述**                                                                                                                                                       |
|:---|:---|:---|
| node_name      | text    | 节点名称。                                                                                                                                                         |
| db_name          | text   | 数据库名称。                                                                                                                                                        |
| thread_name       | text      | 线程名称。                                                                                                                                                      |
| query_id          | bigint    | 查询ID，对应debug_query_id。                                                                                                                                      |
| tid              | bigint    | 当前线程的线程号。                                                                                                                                                     |
| sessionid       | bigint    | session的ID。                                                                                                                                                 |
| lwtid             | integer | 当前线程的轻量级线程号。                                                                                                                                                  |
| psessionid       | bigint   | streaming线程的父线程。                                                                                                                                              |
| tlevel            | integer | streaming线程的层级。                                                                                                                                             |
| smpid            | integer | 并行线程的ID。                                                                                                                                                    |
| wait_status       | text     | 当前线程的等待状态。等待状态的详细信息请参见[表2](https://support.huaweicloud.com/distributed-ref-v10-gaussdb/gaussdb-08-1616.html#ZH-CN_TOPIC_0000002793787503__table572562714157)。 |
| wait_event        | text    | 如果wait_status是acquire lock、acquire lwlock、wait io三种类型，此列描述具体的锁、轻量级锁、I/O的信息；否则为空。                                                                            |
| locktag            | text      | 当前线程正在等待锁的信息。                                                                                                                                                 |
| lockmode          | text      | 当前线程正等待获取的锁模式。包含表级锁、行级锁、页级锁下的各模式。                                                                                                                             |
| block_sessionid   | bigint   | 阻塞当前线程获取锁的会话标识。                                                                                                                                               |
| global_sessionid | text        | 全局会话ID。                                                                                                                                                         |
   
