Primary Postgres database process (postmaster) eating all CPU

It now started happening for me, too, after installing the update to 2.5.0.beta5. One by one I get more postmaster processes that use as much CPU as they can get and it takes them sometimes a few minutes before they complete. Slowly this eats up all AWS credits for the server and makes the whole forum sluggish or even unusable.

Increasing max_connections didn’t have any effect, and so did rebuilding the app.

Before I updated to 2.5.0beta5 I’ve never seen this. Any hint where I should look?