|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
We are using Postgresql Database server to host DB for an analytical tool I am working on. Basically this DB has metrics about files. Row count of few tables are more than 18 million. But the content of the tables are basic data types like numbers, date & string. No binary data is stored. The size of the DB is around 1 GB when taken a full dump.
We query the DB using complex views to get reports and most of the result set of these queries are quite huge (row count in hundreds of thousand or in million).
The size of the DB Cluster Folder varies between 400GB to 600GB which is unreasonably huge for the actual data. It is eating up all disk-space in the server. When I create a fresh DB from the dump in a new server the size of the DB cluster folder is around 2.3 GB which is very reasonable to me.
Could you help me how to clean up DB Cluster folder and reclaim disk space please? And please give me some insight into how data is organized in DB Cluster and what should I do to avoid this happening again?
Size of directories under DB Cluster Folder is mentioned below
[user@server DB_CLUSER_DATA]$ du -ksh *
[Postgresql General] [Postgresql Performance] [Postgresql PHP] [Postgresql Jobs] [PHP Users] [PHP Databases] [PHP Home] [PHP on Windows] [Kernel Newbies] [PHP Classes] [PHP Databases] [Yosemite Forum]