Kill a postgresql session/connection

前端 未结 20 1943
暖寄归人
暖寄归人 2020-11-28 00:11

How can I kill all my postgresql connections?

I\'m trying a rake db:drop but I get:

ERROR:  database \"database_name\" is being accessed         


        
20条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 00:43

    Quit postgres and restart it. Simple, but works every time for me, where other cli commands sometimes don't.

提交回复
热议问题