Created
November 27, 2019 08:34
-
-
Save vikalpj/291d702b1ae85c3aeda1c1c37afc6053 to your computer and use it in GitHub Desktop.
Row counts for all tables in a postgres db.
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
SELECT schemaname,relname,n_live_tup | |
FROM pg_stat_user_tables | |
ORDER BY n_live_tup DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment