Created
March 22, 2018 01:00
-
-
Save curtkim/882810dad99e056ba12c20709189ac2b to your computer and use it in GitHub Desktop.
greenplum sql
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 | |
relname as "Table", | |
pg_size_pretty(pg_total_relation_size(relid)) As "Size", | |
pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as "External Size" | |
FROM pg_catalog.pg_statio_user_tables | |
where schemaname = '' and relname = '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment