THREAD_WAIT_STATUS
This view allows you to test the blocking status about the backend thread and auxiliary thread of the current node.
| Name | Type | Description |
|---|---|---|
| node_name | text | Current node name. |
| db_name | text | Database name. |
| thread_name | text | Thread name. |
| query_id | bigint | Query ID. The value of this column is the same as that of debug_query_id. |
| tid | bigint | Thread ID of the current thread. |
| sessionid | bigint | Session ID. |
| lwtid | integer | Lightweight thread ID of the current thread. |
| psessionid | bigint | Parent thread of the streaming thread. |
| tlevel | integer | Level of the streaming thread. |
| smpid | integer | Concurrent thread ID. |
| wait_status | text | Waiting status of the current thread. |
| wait_event | text | If wait_status is acquire lock, acquire lwlock, or wait io, this column describes the lock, lightweight lock, or I/O information. Otherwise, this column is empty. |
| locktag | text | Information about the lock that the current thread is waiting for. |
| lockmode | text | Lock mode that the current thread is waiting to obtain. The values include table-level lock, row-level lock, and page-level lock modes. |
| block_sessionid | bigint | ID of the session that blocks the current thread from obtaining the lock. |
| global_sessionid | text | Global session ID. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.