Last active
November 16, 2020 17:29
-
-
Save v0rts/a79c24c08023b412bbf001e394ee0e73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT relname, n_live_tup, n_dead_tup, trunc(100*n_dead_tup/(n_live_tup+1))::float "ratio%", | |
to_char(last_autovacuum, 'YYYY-MM-DD HH24:MI:SS') as autovacuum_date, | |
to_char(last_autoanalyze, 'YYYY-MM-DD HH24:MI:SS') as autoanalyze_date | |
FROM pg_stat_all_tables | |
ORDER BY last_autovacuum; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment