Code: Select all
select t1.datname AS db_name,
pg_size_pretty(pg_database_size(t1.datname)) as db_size
from pg_database t1
order by t1.datname;
Code: Select all
\l+
Code: Select all
select t1.datname AS db_name,
pg_size_pretty(pg_database_size(t1.datname)) as db_size
from pg_database t1
order by t1.datname;
Code: Select all
\l+