Skip to content

Instantly share code, notes, and snippets.

@flebel
Created December 24, 2018 14:24
Show Gist options
  • Save flebel/fe3eae27b86b0da74c1fac24aacbc982 to your computer and use it in GitHub Desktop.
Save flebel/fe3eae27b86b0da74c1fac24aacbc982 to your computer and use it in GitHub Desktop.
list last analyze and vacuum operations on a postgres db
SELECT relname, last_vacuum, last_autovacuum, last_analyze, last_autoanalyze
FROM pg_stat_all_tables
WHERE schemaname = 'public';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment