examerioLogin
← 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.

📖 Learn: Indexes & query performance

Related questions

← PreviousNo login needed