- We did vacuum/freeze/analyze first. Did not see any changes. WAL(s) were still building up. So as recommended in the thread, we switched of archiving and reran vacuum.
- Set archive_timeout to 20min.
- Deleted all old WAL(s) and started the db.
There are points note and lessons to learn.
- Changing archive_timeout did not have any effect without restarting the db.I'm not sure why, perhaps due to not running the vacuum perhaps. But to rule out this, we will attempt this tomorrow to see if it takes effect without restating the db.
- When the db was in development just changing the checkpoint_timeout was sufficient to set the interval between WAL(s) that were shipped out.
- Implement pg_compress, or pg_lesslog, pg_clearxlogtail
- Check on how well autovacuum is running and how much to tune it.
Selvam