I want to rename a database, but keep getting the error that ‘couldn’t get exclusive lock’ on the database, which implies there is some connection(s) still active.

How can I kill all the connections to the database so that I can rename it?

19 Answers
19

Leave a Reply

Your email address will not be published. Required fields are marked *