PostgreSQL - Rename database

后端 未结 6 862
感情败类
感情败类 2020-12-23 02:27

I need to rename the database but when I do in PGAdmin : ALTER DATABASE \"databaseName\" RENAME TO \"databaseNameOld\" it told me that it cannot.

How c

6条回答
  •  猫巷女王i
    2020-12-23 03:24

    Instead of deploying a nuke (restarting the server) you should try to close those connections that bother you either by finding where are they from and shutting down the client processes or by using the pg_cancel_backend() function.

提交回复
热议问题