

 从补丁 198 开始，Amazon Redshift 将不再支持创建新的 Python UDF。现有的 Python UDF 将继续正常运行至 2026 年 6 月 30 日。有关更多信息，请参阅[博客文章](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/)。

# SVL\$1QUERY\$1QUEUE\$1INFO
<a name="r_SVL_QUERY_QUEUE_INFO"></a>

总结查询在工作负载管理 (WLM) 查询队列或提交队列中花费时间的详细信息。

SVL\$1QUERY\$1QUEUE\$1INFO 视图筛选系统执行的查询并且只显示用户执行的查询。

SVL\$1QUERY\$1QUEUE\$1INFO 视图总结 [STL\$1QUERY](r_STL_QUERY.md)、[STL\$1WLM\$1QUERY](r_STL_WLM_QUERY.md) 和 [STL\$1COMMIT\$1STATS](r_STL_COMMIT_STATS.md) 系统表的信息。

SVL\$1QUERY\$1QUEUE\$1INFO 仅对超级用户可见。有关更多信息，请参阅 [系统表和视图中的数据可见性](cm_chap_system-tables.md#c_visibility-of-data)。

## 表列
<a name="r_SVL_QUERY_QUEUE_INFO-table-columns"></a>

[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/zh_cn/redshift/latest/dg/r_SVL_QUERY_QUEUE_INFO.html)

## 示例查询
<a name="r_SVL_QUERY_QUEUE_INFO-sample-queries"></a>

下面的示例显示查询在 WLM 队列中所花费的时间。

```
select query, service_class, queue_elapsed, exec_elapsed, wlm_total_elapsed
from svl_query_queue_info
where wlm_total_elapsed > 0;

  query  | service_class | queue_elapsed | exec_elapsed | wlm_total_elapsed
---------+---------------+---------------+--------------+-------------------
 2742669 |             6 |             2 |          916 |                918 
 2742668 |             6 |             4 |          197 |                201 
(2 rows)
```