标签:数据库对象 base pre des select ret sele name data
select pg_size_pretty(pg_database_size(‘lrisk‘)); --查询数据库剩余空间
select pg_database.datname,pg_size_pretty(pg_database_size(‘lrisk‘)) AS size
from pg_database;
select * from pg_database;
SELECT relname, relpages FROM pg_class ORDER BY relpages DESC; --查询数据库对象占用空间从大到小排序
标签:数据库对象 base pre des select ret sele name data
原文地址:https://www.cnblogs.com/jilly324/p/9234599.html