Created
September 6, 2018 17:01
-
-
Save zabacad/bb5be311e8edd58a0b5f43fa071deb33 to your computer and use it in GitHub Desktop.
PostgreSQL 9 table sizes
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 AS table_name, reltuples AS row_estimate FROM pg_class WHERE relname IN (SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment