How to Analyze a Table in Redshift

Last updated July 25, 2026 · By the SaturnSQL team

ANALYZE updates the planner statistics Redshift uses to choose join and distribution strategies. Run it after large loads, and check the stats_off column in SVV_TABLE_INFO to see which tables have stale stats.

ANALYZE orders;
ANALYZE orders (customer_id, created_at); -- specific columns only

Find tables with stale statistics

SELECT "schema", "table", stats_off
FROM svv_table_info
WHERE stats_off > 10
ORDER BY stats_off DESC;

stats_off is 0 when statistics are current and grows toward 100 as they go stale. Redshift also runs auto analyze in the background, and COPY can update stats during loads with STATUPDATE ON.

Run this in SaturnSQL

SaturnSQL is a browser-based SQL editor for teams: shared query library, schema-aware autocomplete, and scheduled exports to Google Sheets and Slack.

Try it free

Related Redshift guides

© 2026 Panda Capital Oy Ab. All rights reserved.