Created
January 10, 2013 16:33
-
-
Save demimismo/4503527 to your computer and use it in GitHub Desktop.
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 sum(pg_relation_size(quote_ident(table_name))) | |
FROM information_schema.tables | |
WHERE table_catalog = database_name AND table_schema = 'public' | |
AND table_name != 'spatial_ref_sys' AND table_type = 'BASE TABLE' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment