Created
April 25, 2021 13:48
-
-
Save jdecode/ab0c84b402a8bdf58b4a739645c4b263 to your computer and use it in GitHub Desktop.
Show estimated row count of all tables in Postgres
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 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