GS_BLOCKLIST_SQL
GS_BLOCKLIST_SQL is used to query job blocklist and exception information. This view is obtained by associating system catalogs GS_BLOCKLIST_SQL and GS_WLM_SESSION_INFO, and deduplicating query results. If the GS_WLM_SESSION_INFO table is large, the query may take a long time.
This view is supported only by 9.1.0.200 and later cluster versions.
Name |
Type |
Reference |
Description |
---|---|---|---|
sql_hash |
text |
N/A |
sql_hash generated based on the query parsing tree. |
block_list |
boolean |
N/A |
Whether a job is in the blocklist. |
except_num |
integer |
N/A |
Number of job exceptions. |
except_time |
timestamp |
N/A |
Time when the last job exception occurred. |
query |
text |
N/A |
Statement to be executed. |
- This view can be queried only in the gaussdb database. If it is queried in other databases, an error will be reported.
- Generally, constant values are ignored during sql_hash calculation in DML statements. However, constant values cannot be ignored in DDL, DCL, and parameter setting statements. A sql_hash may correspond to one or more queries.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot