Postgresql查询所有表所占存储空间大小的语句

select relname, pg_size_pretty(pg_relation_size(relid)) as size from pg_stat_user_tables;

 

留下评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

− 4 = 2