we are using postgresql for ambari DB , in our linux server - rhel 7.2
postgres -V postgres (PostgreSQL) 9.2.13
we noticed that pg_xlog folder consuming 198g , and its gives /var to get 100% size
so after google searching
we noticed about postgresql.conf that have the parameter - wal_keep_segments
according to documentation , wal_keep_segments Specifies the minimum number of past log file segments kept in the pg_xlog directory
my questions are:
- is it safe to use this parameter -
wal_keep_segments, and doing purging onpg_xlogfolder - based on the size of the folder that is nearly to
200g, what is the value that we need to set towal_keep_segments