Restart Heroku Postgres Dev DB

前端 未结 3 489
温柔的废话
温柔的废话 2021-02-04 17:37

I got this error from an Play 2.0.3 java application. How could I restart Heroku Postgres Dev DB? I could not find any instructions to restart the DB on Heroku help center.

3条回答
  •  Happy的楠姐
    2021-02-04 18:02

    I think I should have just added this in reply to the previous answer, but I couldn't figure out how to do that, so...

    As an update to Liron Yahdav's comment in the accepted answer's thread: the "non-heroku users who found this" solution worked for me on a Heroku PostgreSQL dev database, but with a slight modification to the query Liron provided. Here is my modified query: SELECT pid, pg_terminate_backend(pid) FROM pg_stat_activity WHERE pid <> pg_backend_pid() AND usename='';

    It seems that procpid has changed to pid.

提交回复
热议问题