Understanding Database size and sizes of respective tables
searchcancel
Understanding Database size and sizes of respective tables
book
Article ID: 301513
calendar_today
Updated On: 01-02-2025
Products
VMware Smart Assurance
Issue/Introduction
Finding out the size of the tables in Smarts NCM (Voyence) database.
Environment
10.1.x - NCM
Resolution
Launch a command prompt in Database (DB) server and log into the postgres with the following command sequence:
su - pgdba -c 'psql voyencedb voyence'
Provide password for user 'voyence' when prompted.
Once logged in, run the below SQL select command:
select * from cm_total_db_size;
to get entire DB size.
select * from cm_calculate_table_sizes; to get size by each table, i.e the above query should produce output similar to the following for all of the tables in the database: voyencedb=# SELECT * from cm_calculate_table_sizes;