Created
February 18, 2022 14:29
-
-
Save a1anw2/62d410fa6faf3f7bc07fefdc45260619 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 | |
t1.datname AS db_name, | |
pg_size_pretty(pg_database_size(t1.datname)) as db_size | |
from | |
pg_database t1 | |
order by | |
pg_database_size(t1.datname) desc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment