I have an RDS PostgreSQL instance that's running simple queries, much slower than I would expect - particularly sequential scans, like copying a table or counting a table.
Eg. create table copied_table as (select * from original_table)
or select count(*) from some_table
Running count(*)
on a 30GB table takes ~15 minutes (with indexes, immediately following a vaccuum).
It's an RDS db.r3.large, 15 GB memory, 400GB SSD. Watching the metrics logs, I've never seen Read IOPS exceed 1,400 and it's usually around 500, well below my expected base.
Configuration: work_mem: 2GB, shared_buffers: 3GB, effective_cache_size: 8GB wal_buffers: 16MB, checkpoint_segments: 16
Is this the expected timing? Should I be seeing higher IOPS?