码迷,mamicode.com
首页 > 数据库 > 详细

查看数据库、表、索引大小

时间:2020-03-31 16:00:55      阅读:87      评论:0      收藏:0      [点我收藏+]

标签:database   tty   pretty   ble   size   查看   dex   col   大小   

select pg_size_pretty(pg_table_size(‘test‘));   

select pg_size_pretty(pg_database_size(‘david‘));

select pg_size_pretty(pg_indexes_size(‘test‘));

查看数据库、表、索引大小

标签:database   tty   pretty   ble   size   查看   dex   col   大小   

原文地址:https://www.cnblogs.com/liang545621/p/12605731.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!