← Backend PythonQuestion 36 of 49
What is the difference between ANALYZE and VACUUM ANALYZE in PostgreSQL?
📘 Explanation
ANALYZE only refreshes planner statistics, while VACUUM ANALYZE additionally removes dead tuples left behind by MVCC. The other options incorrectly claim locking differences, treat them as aliases, or swap their actual functions.
Related questions
- What is the left-prefix rule for composite indexes?
- Why might a query using LOWER(email) not use an index on email?
- If PostgreSQL chooses a bad query plan because statistics are stale, what command should you run?
- What is the difference between EXPLAIN and EXPLAIN ANALYZE in PostgreSQL?
- Why might an index not be used when most rows match the condition?
← PreviousNo login needed