Last active
June 3, 2016 09:01
-
-
Save bitdivine/6c170c05d101b3b397d8ad2fbe7dbe85 to your computer and use it in GitHub Desktop.
View to show when a postgres table was last vacuumed.
This file contains hidden or 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
| CREATE VIEW inf_vacuum AS | |
| SELECT | |
| schemaname, relname, | |
| last_vacuum, last_autovacuum, | |
| vacuum_count, autovacuum_count FROM pg_stat_user_tables; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment