Received: from sss.pgh.pa.us (sss.pgh.pa.us [209.114.132.154]) by hub.org (8.10.1/8.11.0) with ESMTP id e9QE2RU39691 for ; Thu, 26 Oct 2000 10:02:27 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.1/8.11.1) with ESMTP id e9QE2E505393; Thu, 26 Oct 2000 10:02:14 -0400 (EDT) To: "Brian C. Doyle" cc: pgsql-sql@postgresql.org Subject: Re: Alternate Database Locations In-reply-to: <5.0.0.25.2.20001026060649.04965e00@pop.mindspring.com> References: <5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com> <4.3.2.7.2.20001024190037.00e2fa80@pop.mindspring.com> <5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com> <5.0.0.25.2.20001026060649.04965e00@pop.mindspring.com> Comments: In-reply-to "Brian C. Doyle" message dated "Thu, 26 Oct 2000 06:08:39 -0400" Date: Thu, 26 Oct 2000 10:02:13 -0400 Message-ID: <5390.972568933@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200010/240 X-Sequence-Number: 1907 "Brian C. Doyle" writes: > Okay I am still doing something wrong here > I set PGDATA2=/home/user1/database > export PGDATA2 > then I start postmaster > postmaster -d PGDATA2 -i -p 5431 & I think you are confusing the "alternate database directory" stuff with having a separate installation (primary directory). To set up a second postmaster, you first have to initdb its installation directory: initdb -D /home/user1/database then start the postmaster like so: postmaster -D /home/user1/database -p whatever ... Instead of -D (note upper case), you can alternatively set env variable PGDATA for these two programs. The stuff in the manual about alternate database directories is to allow a *single* postmaster to manage databases located somewhere other than underneath its installation directory. It's got nothing at all to do with starting additional postmasters. regards, tom lane