pgsql统计表数据大小

select relname, pg_size_pretty(pg_relation_size(relid)) from pg_stat_user_tables where schemaname='public' order by pg_relation_size(relid) desc;
posted @ 2023-06-30 15:11  懂得归零  阅读(98)  评论(0编辑  收藏  举报