Kill a postgresql session/connection

前端 未结 20 1924
暖寄归人
暖寄归人 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:53

    MacOS, if postgresql was installed with brew:

    brew services restart postgresql
    

    Source: Kill a postgresql session/connection

提交回复
热议问题