从postgres-9.3升级到postgres-9.5

时间:2017-01-05 12:05:26

标签: postgresql postgresql-9.3 ubuntu-16.04 postgresql-9.5

我需要在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"? 现在我好累和沮丧。如果有人有任何可能的解决方案或建议,请帮助

1 个答案:

答案 0 :(得分:0)

问题似乎来自postgres存储库中的9.5版本。我安装了9.6,一切都像魔法一样。如果我知道之前有一个稳定的9.6,我不会浪费6个小时的生命,我可以做10分钟。无论如何,我很高兴我有一个jsonb字段的工作帖子

相关问题