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

前端 未结 16 2122
时光取名叫无心
时光取名叫无心 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条回答
  •  伪装坚强ぢ
    2020-12-04 07:17

    Let your application close the connection when it's done. PostgreSQL doesn't keep connections open , it's the application keeping the connection.

提交回复
热议问题