首页 > 代码库 > psql 查询表大小

psql 查询表大小

select schemaname,tablename,pg_relation_size(schemaname||‘.‘||tablename) as tabsize from pg_tables order by 3 desc;

select schemaname,tablename,pg_table_size(schemaname||‘.‘||tablename) as tabsize from pg_tables order by 3 desc;

  

psql 查询表大小