Slow Sidekiq + Postmaster using 95%+ CPU (32 cores) after Postgresql Version Upgrade

You need to check what are the exact queries PostgreSQL is running in order for us to have suggestions.

Enabling pg_stat_statements is really useful for that.