You changed `work_mem` in the parameter group, but `SHOW work_mem;` still shows the old value.
IntermediateTroubleshootingRDS, Aurora and DynamoDB
Answer
Likely causes → The instance uses a different parameter group, the parameter is static (it needs a reboot, status pending-reboot), or the session or role overrides it.
Diagnose →
aws rds describe-db-instances --db-instance-identifier mydb \
--query 'DBInstances[].DBParameterGroups'
aws rds describe-db-parameters --db-parameter-group-name pg16-app \
--query "Parameters[?ParameterName=='work_mem'].[ParameterValue,ApplyType,IsModifiable]"
psql -c "select name, setting, source from pg_settings where name='work_mem';"
Fix →
- Attach the right custom group. The default group cannot be modified
- For static parameters, reboot during a window
- Remove role-level overrides (
ALTER ROLE app RESET work_mem)
Prevent → Use one custom parameter group per engine and environment, managed in IaC, and check pending-reboot after every change.
More on RDS, Aurora and DynamoDB
The app cannot connect to RDS: `psql: error: connection to server at "mydb.abc.us-east-1.rds.amazonaws.com" (10.0.3.12), port 5432 failed: Connection timed out`.Beginner`FATAL: password authentication failed for user "postgres"` and nobody knows the master password.Beginner`FATAL: no pg_hba.conf entry for host "10.0.1.25", user "app", database "orders", no encryption`.IntermediateApp logs show `FATAL: remaining connection slots are reserved for non-replication superuser connections` (or MySQL `ERROR 1040 (HY000): Too many connections`).IntermediateRDS status shows `storage-full` and writes fail.IntermediateA read replica's `ReplicaLag` keeps growing and reports show stale data.Intermediate