X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A35AFD1B527 for ; Sat, 13 Sep 2003 22:43:47 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 03172-02 for ; Sat, 13 Sep 2003 19:43:39 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id C7469D1B52B for ; Sat, 13 Sep 2003 19:43:36 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h8DMhZAn021160; Sat, 13 Sep 2003 18:43:35 -0400 (EDT) To: Ben Kim Cc: pgsql-admin@postgresql.org Subject: Re: upgrade question: running different versions on one host In-reply-to: References: Comments: In-reply-to Ben Kim message dated "Thu, 11 Sep 2003 12:38:44 -0500" Date: Sat, 13 Sep 2003 18:43:35 -0400 Message-ID: <21159.1063493015@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/242 X-Sequence-Number: 10330 Ben Kim 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