【问题标题】:Upgrading from postgres-9.3 to postgres-9.5从 postgres-9.3 升级到 postgres-9.5
【发布时间】: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


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-07
      • 2016-12-20
      • 2014-01-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-29
      • 2021-12-12
      相关资源
      最近更新 更多