新建数据库提示: [PostgreSQL] "template1" being accessed by other users 说明该template1模板正在被人连接。我选择的解决方案是: 查询出连接该数据库的进程,并将其杀死(比较暴力)。 select pg_terminate_backend(pid) from pg_stat_activity where DATNAME = 'template1';