【发布时间】:2017-01-05 12:05:25
【问题描述】:
我需要在 postgres 中使用新的 jsonb 字段,所以我决定在我的 ununtu 16.04 LTS 中升级到 9.5。我遵循了这个 tutorial ,但是当它到达命令 pg_upgradecluster 9.3 main 时,我得到了 cluster configuration already exists 的错误。我查看了其他教程,发现可以使用pg_lsclusters 获取集群列表。但该命令始终只显示 9.3 集群。任何创建 9.5 集群的尝试总是会导致 cluster configuration already exists。我清除了 9.5 并再次安装了多次,但结果相同。最后,我决定在使用pg_dumpall 备份我的 9.3 集群后清除所有的 postgres 安装。
现在我决定重新安装 9.5,但我仍然得到同样的东西。当我安装 pg_lsclusters 时没有显示任何内容,并且在启动 postgres psql 后总是返回 psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
现在我很累很沮丧。如果有人有任何可能的解决方案或建议,请帮助
【问题讨论】:
标签: postgresql postgresql-9.3 ubuntu-16.04 postgresql-9.5