| Default RDS Parameter Group starves autovacuum and causes table bloat | Stock RDS parameter groups leave autovacuum_max_workers at 3 and autovacuum_vacuum_scale_factor at 0.20, which means a 500M-row table waits for 100M dead tuples before vacuum starts. | Tune global autovacuum_vacuum_cost_limit and autovacuum_max_workers in a custom DB Parameter Group, and apply per-table storage parameters (autovacuum_vacuum_scale_factor = 0.01) on hot tables. |
| EBS WriteIOPS and ReadLatency spike during checkpoints and peak traffic | Legacy gp2 volumes exhaust burst credits, or gp3 volumes run with default 3,000 IOPS / 125 MB/s ceilings while random_page_cost and checkpoint_completion_target remain untuned. | Migrate gp2 to gp3 with independently provisioned IOPS (up to 16,000) and throughput (up to 1,000 MB/s), set random_page_cost = 1.1, and increase max_wal_size to smooth checkpoint flushes. |
| RDS Proxy fails to multiplex connections and hits max_connections anyway | ORMs (Prisma, Hibernate, Rails ActiveRecord) issue SET statements, prepared statements, or temporary tables that pin the entire session in RDS Proxy, disabling transaction multiplexing. | Audit CloudWatch DatabaseConnectionsCurrentlySessionPinned metrics, refactor session-pinning ORM settings, or deploy PgBouncer in transaction mode with protocol-level prepared statement support (PG 16+ / PgBouncer 1.21+). |
| RDS Blue/Green deployment switchover blocks or fails on logical replication | Long-running transactions, unsupported DDL during staging, or heavy replica lag prevent the RDS Blue/Green switchover guard from completing within the configured timeout. | Pre-check Green environment replication lag, terminate idle-in-transaction blockers via automated pre-switchover scripts, verify extension parity, and rehearse switchover timing in staging. |
| Transaction ID (XID) wraparound emergency forces single-user recovery risk | Orphaned replication slots (from aborted DMS tasks or Debezium connectors), prepared transactions, or long-running analytical queries prevent autovacuum from advancing relfrozenxid. | Alert on CloudWatch MaximumUsedTransactionIDs above 400M, set old_snapshot_threshold / idle_in_transaction_session_timeout, and configure max_slot_wal_keep_size to reap dead slots. |
| Runaway AWS RDS bill from oversized x86 instances and Performance Insights retention | Teams scale up from db.r6i.2xlarge to db.r6i.8xlarge to mask three unindexed queries, paying for extra vCPUs and memory instead of fixing query plans and moving to Graviton (r7g). | Fix top CPU/IO queries using pg_stat_statements and auto_explain, right-size onto AWS Graviton3 (db.r7g / db.m7g), and align Reserved Instance commits only after workload stabilization. |