查看数据库及表占用的空间

遇到问题:insert 单个表不进去

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;

posted @ 2018-05-30 15:43  java奋斗  阅读(162)  评论(0编辑  收藏  举报