美文网首页
PSQL手札

PSQL手札

作者: 一条湫刀鱼 | 来源:发表于2017-07-25 18:45 被阅读4次
  • 查看表数据大小


    image.png
select relname, relkind, relpages,pg_size_pretty(pg_relation_size(a.oid)),relowner
from pg_class a
where a.relkind in ('r', 'i')
and reltablespace='0'
 order by a.relpages desc;

相关文章

网友评论

      本文标题:PSQL手札

      本文链接:https://www.haomeiwen.com/subject/aplgkxtx.html