I have some issue with a DB (hosted on Amazon RDS), when sometimes 100% CPU consumption happens and all select queries became slow. Also there is a curious detail on graphs: write operations per sec is much greater than read operations per sec but pg_stat_activity returns only select queries, no create, update or delete (CUD) queries.
The question is: what is the cause of high write operations per sec metric value? Does this metric include operations with indexes (rebuild) on CUD queries? Why I don't see CUD queries in pg_stat_activity results?
