Jump to content
Toggle menu
  • 51 articles
  • 24 files
  • 4 users
  • 750 edits
Tech-Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

How to shrink the database

From Tech-Wiki


Practical configuration and operational reference for How to shrink the database.

Procedure

If the partition is full delete some old log files to make some space.

Change the number of days

Configure > Administration > Maintenance
Reduce the number of days in the Cleanup Historical Data table

Start the database

start db

Start the deletion of the old data

/usr/local/st/st_monitor
tail -F /var/log/st/st_monitor

Reclaim the database space (vacuum the DB)

psql securetrack -Upostgres -c "VACUUM FULL"

See also