0

我已经在表中加载了 .tbl 文件,现在如何查看数据库在磁盘上使用的总空间?我正在使用 Fedora

4

2 回答 2

2

可以使用 dbfarm 目录上的 (Linux) 命令“du”或运行查询“select * from storage()”来评估磁盘占用空间;

资料来源:http ://www.monetdb.org/Documentation/Userguide/diskspace

于 2014-03-07T13:13:00.120 回答
1

您可以尝试如下:

mclient -d dwh -f tab -s "select location from storage() where table='name_of_a_table';" | xargs -i du -m /var/monetdb5/dbfarm/dwh/bat/{}.tail | cut -f1 | paste -sd+ | bc
于 2015-12-25T10:14:27.117 回答