The Vertica Forum recently got a makeover! Let us know what you think by filling out this short, anonymous survey.
Please take this survey to help us learn more about how you use third party tools. Your input is greatly appreciated!
show partition size

Hello. Could you help me? There is a vertica cluster (version 12.0). The database has a table for which partitions are configured. The table is large, so I want to delete the oldest partitions, the largest ones. To do this, I need to know the size of each partition. How can I see the size of a partition?
Tagged:
0
Answers
You can find this in v_monitor.partitions, though you may want to sum across all nodes, and JOIN to v_catalog.projections to calculate across multiple projections on the same table:
d2=> select * from v_monitor.partitions limit 1;
partition_key | projection_id | table_schema | projection_name | ros_id | ros_size_bytes | ros_row_count | node_name | deleted_row_count | location_label
---------------+-------------------+--------------+-------------------+-------------------+----------------+---------------+---------------+-------------------+----------------
2021-01-01 | 45035996273709536 | public | dump1090new_super | 45035996656645565 | 370795072 | 23918443 | v_d2_node0001 | 0 |
@Bryan_H thanks a lot!
This is more detailed - if you want, for example, to find the 4 biggest partitions in the database: