PostgreSQL · Command
ANALYZE
ANALYZE collects table statistics and saves them in pg_statistic. The query planner uses these statistics to choose efficient plans; PostgreSQL usually runs ANALYZE automatically through autovacuum.
Last updated
Syntax
ANALYZE [ ( option [, ...] ) ] [ table_and_columns [, ...] ]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
EXPLAINVACUUMvacuumdbpg_stat_progress_analyzedefault_statistics_targetALTER TABLE ... ALTER COLUMN ... SET STATISTICS