DEV Community

Discussion on: How to deal with ActiveRecord::StatementInvalid PG::QueryCanceled?

Collapse
 
rhymes profile image
rhymes

What Heroku plan is dev.to on? It looks like it has something to do with Heroku's Postgres balancer.

Have you tried investigating with SELECT * FROM pg_stat_activity when that happens?

Here are the details of the table: postgresql.org/docs/10/static/moni...

Even though I guess that if you run out of connections there's no time to investigate...