数据存储容量
-
如何查询当前数据库的大小?
要查询当前数据库大小,可以使用以下SQL语句:,,“sql,SELECT table_name AS “Table”, pg_size_pretty(pg_total_relation_size(table_name::cstring)) AS “Size” FROM information_schema.tables;,“
要查询当前数据库大小,可以使用以下SQL语句:,,“sql,SELECT table_name AS “Table”, pg_size_pretty(pg_total_relation_size(table_name::cstring)) AS “Size” FROM information_schema.tables;,“