0
点赞
收藏
分享

微信扫一扫

查询Postgres数据库中每个表的数据量大小

gy2006_sw 2023-04-01 阅读 74

select
relname as TABLE_NAME,
reltuples as rowCounts
from
pg_class
where
relkind = 'r'
and relnamespace = (
select
oid
from
pg_namespace
where
nspname = 'dw')
order by
rowCounts desc;

 

举报

相关推荐

0 条评论