Rails + Postgres drop error: database is being accessed by other users

前端 未结 16 2132
时光取名叫无心
时光取名叫无心 2020-12-04 06:26

I have a rails application running over Postgres.

I have two servers: one for testing and the other for production.

Very often I need to clone the production

16条回答
  •  Happy的楠姐
    2020-12-04 07:10

    Easier and more updated way is: 1. Use ps -ef | grep postgres to find the connection # 2. sudo kill -9 "# of the connection

    Note: There may be identical PID. Killing one kills all.

提交回复
热议问题