pgAdminを強制終了すると、たまにサーバ側にプロセスが残ったままになり 接続しなおしても source database "template1" is being accessed by other usersというエラーを吐き新しいデータベースの作成や削除が出来なくなることがある そんな時は、データベースのあるサーバで 残っているプロセスを削除する $ ps -aux postgres 28030 0.0 0.2 86128 5052 ? S Aug24 0:00 postgres: meta template1 127.0.0.1 idle postgres 28151 0.0 0.3 87284 6040 ? S Aug24 0:00 postgres: meta meta 127.0.0.1 idle postgres 30201 0.0 0.3 87292 6868 ? S