Re: Upgrade: 9.0.5->9.3.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Upgrade: 9.0.5->9.3.3
Date: 2014-03-18 15:09:37
Message-ID: 9336.1395155377@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rich Shepard <rshepard(at)appl-ecosys(dot)com> writes:
> On Mon, 17 Mar 2014, Rich Shepard wrote:
>> Now, -9.0.5 is installed in /usr/local/pgsql/ and -9.3.3 is installed in
>> /opt/pgsql-9.3.3. I want to use pg_upgrade and have read the Web page with
>> the instructions.

> I am having problems initializing the new version in /opt/pgsql-9.3.3. I
> kill the postgres-9.0.5 process, and as user 'postgres' I tried to initdb
> with this result:

> initdb -D /opt/pgsql-9.3.3/9.3/data/
> The program "postgres" was found by "/bin/initdb"
> but was not the same version as initdb.
> Check your installation.

> When I ask which postgres I find:

> [root(at)salmo ~]# ll /usr/bin/postgres
> lrwxrwxrwx 1 root root 34 Mar 17 06:50 /usr/bin/postgres ->
> ../lib/postgresql/9.3/bin/postgres*

Your PATH seems to be finding initdb in /bin (or is that /usr/bin),
not the one you want under /opt/pgsql-9.3.3.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2014-03-18 15:32:51 Re: Upgrade: 9.0.5->9.3.3
Previous Message Rich Shepard 2014-03-18 14:46:49 Re: Upgrade: 9.0.5->9.3.3