

 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://amazonaws-china.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# Managing query versions
<a name="query-editor-v2-query-versions"></a>

Every time you save a SQL query, the query editor v2 saves it as a new version. You can browse earlier query versions, save a copy of a query, or restore a query. 

**To manage query versions**

1. Choose **Queries** from the navigation pane.

1. Open the context (right-click) menu for the query that you want to work with.

1. Choose **Version history** to open a list of versions of the query.

1. On the **Version history** page, you can do the following:
   + **Revert to selected** – Revert to the selected version and continue your work with this version.
   + **Save selected as** – Create a new query in the editor.