Vertica of these things (ix) --- vertica storage statistics

vertica storage statistics:

Table quantities:

select count(distinct table_name)  FROM tables;

Partition Table Quantity:

select count(distinct table_name) from PARTITION_COLUMNS;

Summary Table accounting for size:

SELECT sum(used_bytes)/1024/1024/1024 FROM projection_storage ;

The total size of the partition table:

select sum(disk_space_bytes)/1024/1024/1024 from PARTITION_COLUMNS;
SELECT sum(used_bytes)/1024/1024/1024 FROM projection_storage where anchor_table_name in (select distinct table_name from PARTITION_COLUMNS);

Partition table size (prior to 10):

select table_name,sum(disk_space_bytes)/1024/1024/1024 size from PARTITION_COLUMNS group by table_name order by size desc limit 10;

The partition size of each partition table (top 20):

select partition_key,sum(disk_space_bytes)/1024/1024/1024 size from PARTITION_COLUMNS group by partition_key order by size desc limit 20;

Guess you like

Origin www.cnblogs.com/qinchaofeng/p/12667403.html