删除9.3.5 oldbindir后如何将Postgres 9.3.5迁移到9.4.4?

时间:2015-06-27 11:39:55

标签: sql database postgresql

我正在尝试从Postgres 9.3.5迁移到9.4.4并且这样做我已经删除了Postgres的旧9.3.5安装(我认为这太早了brew cleanup)。虽然有关如何升级的各种来源信息,但我意识到为了pg_upgrade我需要oldbindir这样做。

有没有办法解决这个问题,如果是这样的话。如果没有,我怎么能以正确的方式重新安装旧版本到正确的位置,然后运行pg_upgrade?

一些上下文可以帮助您了解我的位置:

brew info postgres

postgresql: stable 9.4.4 (bottled)
Object-relational database system
https://www.postgresql.org/
Conflicts with: postgres-xc
/usr/local/Cellar/postgresql/9.4.4 (3014 files, 40M) *
  Poured from bottle
From:     https://github.com/Homebrew/homebrew/blob/master/Library/Formula/postgresql.rb
==> Dependencies
Required: openssl ✔, readline ✔
==> Options
--32-bit
    Build 32-bit only
--with-dtrace
    Build with DTrace support
--with-python
    Build with python support
--without-perl
    Build without Perl support
--without-tcl
    Build without Tcl support
==> Caveats
If builds of PostgreSQL 9 are failing and you have version 8.x installed,
you may need to remove the previous version first. See:
  https://github.com/Homebrew/homebrew/issues/2510

greps返回以下内容,因此服务器似乎不在本地运行:

ps aux | grep postgres
501  1228   367   0 10:37am ttys000    0:00.01 grep postgres

ps aux | grep pgsql
501  1260   367   0 10:42am ttys000    0:00.01 grep pgsql

/usr/local/Cellar/postgresql我只有; 9.4.4

/usr/local/var目前有:

postgres.old - 所有旧数据库所在的位置。 postgres.old2 - 不确定这是从哪里来的,我不得不chown来查看内容,只有server.log里面。 postgres9.4. - 完全看似应该是在initdb'd之后。 'postgres' - 空,认为这是在失败的pg_upgrade尝试中创建的。

任何帮助都非常感激,我已经在这里待了好几个小时了。您需要的任何更多上下文信息,以帮助您找到正确的解决方案,请告诉我。感谢

0 个答案:

没有答案
相关问题