查看数据表的占用空间大小
SELECT pg_size_pretty(pg_total_relation_size('table_name'))
查看数据库占用磁盘空间大小
SELECT pg_size_pretty(pg_database_size('south_csg_show'))
查看数据表的占用空间大小
SELECT pg_size_pretty(pg_total_relation_size('table_name'))
查看数据库占用磁盘空间大小
SELECT pg_size_pretty(pg_database_size('south_csg_show'))