PostgreSQL Statistics and ANALYZE

PostgreSQL uses internal statistics to optimize query execution plans. These statistics are collected using the ANALYZE command.

When to run ANALYZE

Example

ANALYZE VERBOSE public.my_table;

This page is part of the DBA Training platform and intended for educational use.