It isn't clear if auto vacuum is running in rds. Thanks!
Postgresql – Does amazon rds PostgreSQL require vacuum
amazon-rdspostgresql
Related Question
- Postgresql – Local Backup from Amazon RDS PostgreSQL database
- Postgresql – Force PostgreSQL clients to use SSL on Amazon RDS
- Mysql – How to test encryption on Amazon RDS MySQL
- Postgresql – How to determine optimal value for pg_stat_ramdisk_size on Amazon RDS
- Postgresql – How to set the default timezone in PostgreSQL on Amazon RDS
Best Answer
Run this query to show if/when your tables were last vacuumed.
SELECT * FROM pg_stat_all_tables;
A table won't be vacuumed until the insert/update/delete threshold is reached, which is 20%.
You can tweak the setting in RDS by creating a new DB Parameter Group and change the setting you want.