Amazon Redshift will no longer support the use of Python UDFs after June 30, 2026.
We will start enforcing it in phases. For more information on the details of Python end of life
and migration options, see the
blog post
Identifying tables with missing statistics
The following query provides a count of the queries that you are running against
tables that are missing statistics. If this query returns any rows, look at the
plannode value to determine the affected table, and then run ANALYZE on it.
select substring(trim(plannode),1,100) as plannode, count(*) from stl_explain where plannode like '%missing statistics%' group by plannode order by 2 desc;