Last active
December 4, 2024 20:02
-
-
Save rdeavila/b4e35d3376820b992313 to your computer and use it in GitHub Desktop.
PostgreSQL: Como ver o tamanho das bases de dados de um servidor
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
-- Para saber o tamanho de todas as bases de dados: | |
SELECT pg_database.datname, pg_size_pretty(pg_database_size(pg_database.datname)) AS size FROM pg_database; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tem também esse script que peguei aqui , que mostra os bancos excluindo os bancos padrão do sistema e a soma do tamanho das bases no servidor.