Skip to main content
jie
Staff
Staff
February 3, 2026

Technical Tip: How to check FortiClient EMS 7.4 database size and specific table size

  • February 3, 2026
  • 0 replies
  • 138 views
Description This article describes the command syntax to check the FortiClient EMS database size and database table size.
Scope FortiClient EMS v7.4.x.
Solution

The command is used to check the FortiClient EMS Postgres database size in a Linux environment.


#df -h

 

1.PNG


#sudo -u postgres psql -Atc "SELECT datname, pg_size_pretty(pg_database_size(datname)) FROM pg_database ORDER BY pg_database_size(datname) DESC;"

 

2.PNG

 

The command below can be used to check the FortiClient EMS table size: 

 

#sudo -u postgres psql -Atc "SELECT schemaname AS schema_name, tablename AS table_name, pg_size_pretty(pg_total_relation_size(schemaname || '.' || tablename)) AS total_size, pg_relation_size(schemaname || '.' || tablename) AS table_size, pg_indexes_size(schemaname || '.' || tablename) AS indexes_size FROM pg_tables WHERE schemaname NOT IN ('pg_catalog', 'infomation_schema') ORDER BY pg_total_relation_size(schemaname || '.' || tablename) DESC limit 10;"

 

3.PNG