Difference between revisions of "PostgreSQL VACUUM"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
Examples:
 
Examples:
 
* <code>VACUUM (VERBOSE, ANALYZE) my_table;</code>
 
* <code>VACUUM (VERBOSE, ANALYZE) my_table;</code>
 +
 +
 +
SELECT
 +
  schemaname, relname,
 +
  last_vacuum, last_autovacuum,
 +
  vacuum_count, autovacuum_count
 +
FROM [[pg_stat_user_tables]];
 +
  
 
== Related terms ==
 
== Related terms ==

Revision as of 10:44, 5 August 2021

Advertising: