

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# STV\$1EXEC\$1STATE
<a name="r_STV_EXEC_STATE"></a>

Use the STV\$1EXEC\$1STATE table to find out information about queries and query steps that are actively running on compute nodes.

This information is usually used only to troubleshoot engineering issues. The views SVV\$1QUERY\$1STATE and SVL\$1QUERY\$1SUMMARY extract their information from STV\$1EXEC\$1STATE.

STV\$1EXEC\$1STATE is visible to all users. Superusers can see all rows; regular users can see only their own data. For more information, see [Visibility of data in system tables and views](cm_chap_system-tables.md#c_visibility-of-data).

Some or all of the data in this table can also be found in the SYS monitoring view [SYS\$1QUERY\$1DETAIL](SYS_QUERY_DETAIL.md). The data in the SYS monitoring view is formatted to be easier to use and understand. We recommend that you use the SYS monitoring view for your queries.

## Table columns
<a name="r_STV_EXEC_STATE-table-columns"></a>

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

## Sample queries
<a name="r_STV_EXEC_STATE-sample-queries"></a>

Rather than querying STV\$1EXEC\$1STATE directly, Amazon Redshift recommends querying SVL\$1QUERY\$1SUMMARY or SVV\$1QUERY\$1STATE to obtain the information in STV\$1EXEC\$1STATE in a more user-friendly format. See the [SVL\$1QUERY\$1SUMMARY](r_SVL_QUERY_SUMMARY.md) or [SVV\$1QUERY\$1STATE](r_SVV_QUERY_STATE.md) table documentation for more details.