-
-
Save vyach-vasiliev/1e1a37065e596d917f3d4953d8f2932a to your computer and use it in GitHub Desktop.
Get schema size (postgres).
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 pg_size_pretty(sum(pg_relation_size(quote_ident(schemaname) || '.' || quote_ident(tablename)))::bigint) FROM pg_tables | |
WHERE schemaname = 'yourschema' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment