文档 · 2024年2月1日 0

Postgresql查看所有数据库大小

SELECT 
    datname AS "Database Name",
    pg_size_pretty(pg_database_size(datname)) AS "Size"
FROM 
    pg_database
ORDER BY 
    pg_database_size(datname) DESC;

 

打赏