Updates column statistics used by the optimizer to
determine the most efficient way to execute a query.
- The statistics represent the disbursion of the data in each column.
- This information is valuable when several execution paths are possible.
tuples and number of pages stored in all classes.
+
+ VACUUM ANALYZE collects statistics representing the
+ disbursion of the data in each column.
+ This information is valuable when several query execution paths are possible.
+
+
Running VACUUM
periodically will increase the speed of the database in processing user queries.
query may be executed at any time, however. In particular, after
copying a large class into
Postgres
or after deleting a large number of
- records, it may be a good idea to issue a VACUUM
+ records, it may be a good idea to issue a VACUUM ANALYZE
query. This will update the system catalogs with the results of all
recent changes, and allow the
Postgres
query optimizer to make better choices in planning user queries.
+