Created
June 6, 2014 08:24
-
-
Save muzhig/86b8041cd6352c1f15c1 to your computer and use it in GitHub Desktop.
postgres 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, pg_size_pretty(relpages::bigint * 8 * 1024) as size, relkind, reltuples::bigint as rows, relpages, relfilenode FROM pg_class ORDER BY relpages DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment