From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Kim <bkim@edsun.coe.tamu.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: upgrade question: running different versions on one host
Date: Sat, 13 Sep 2003 18:43:35 -0400
Message-ID: <21159.1063493015@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.GSO.4.10.10309111202230.5578-100000@edsun.coe.tamu.edu>
References: <Pine.GSO.4.10.10309111202230.5578-100000@edsun.coe.tamu.edu>
Ben Kim <bkim@edsun.coe.tamu.edu> writes:
> I compiled 7.3.4 on a host already running 7.2.1, with
> "--prefix=/different/directory --pgport=5833 ..." option.
> According to the installation instructions on
> developer.postgresql.org/docs/postgres/install-procedure.html, I thought I
> only have to give a different directory as the --prefix, then
> --exec-prefix, --bindir, --datadir, etc. will automatically be made
> different.
> But surprisingly, when I did "make install", the postgres 7.2.1's
> "postgres" and "ecpg" binary was overwritten.
What were the paths in question, exactly? I do this constantly (I have
four or five different versions of PG on my devel machines) and I've
never had a problem.
> I intentionally used the same user name for both versions, only used a
> different directory. The two installations share the same PGDATA
> environment variable.
You *can't* have two installations share a PGDATA directory. The newer
version should have refused to start because $PGDATA/PG_VERSION would
have looked wrong to it.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, bkim@edsun.coe.tamu.edu
Subject: Re: upgrade question: running different versions on one host
In-Reply-To: <21159.1063493015@sss.pgh.pa.us>
References: <Pine.GSO.4.10.10309111202230.5578-100000@edsun.coe.tamu.edu> <21159.1063493015@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox