Received: from maynard.mail.mindspring.net (maynard.mail.mindspring.net [207.69.200.243]) by hub.org (8.10.1/8.11.0) with ESMTP id e9QEvqU80120 for ; Thu, 26 Oct 2000 10:57:52 -0400 (EDT) (envelope-from bcdoyle@mindspring.com) Received: from hbg-dnt-1467.mindspring.com (fw-5-e3.atl2.mindspring.net [207.69.162.92]) by maynard.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id KAA12021; Thu, 26 Oct 2000 10:57:50 -0400 (EDT) Message-Id: <5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com> X-Sender: bcdoyle@pop.mindspring.com X-Mailer: QUALCOMM Windows Eudora Version 5.0 Date: Thu, 26 Oct 2000 10:56:05 -0400 To: Tom Lane From: "Brian C. Doyle" Subject: Re: Alternate Database Locations Cc: pgsql-sql@postgresql.org In-Reply-To: <5390.972568933@sss.pgh.pa.us> References: <5.0.0.25.2.20001026060649.04965e00@pop.mindspring.com> <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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200010/246 X-Sequence-Number: 1913 Okay... I can now run as many postmasters as I could imagine... KICK BUTT!!!! I am still running into a problem with the "alternate database locations" and that is I seem to be able to only set up 1 other alternate location. After getting the first alt location setup Iset PGDATA2= /home/user1/database export it initdb -D /home/user1/database started postmaster -D /home/user1/database initlocation 'PGDATA2' createdb user1 -D 'PGDATA2' it creates but it is putting it in /home/user/database the first alt location i set up!!! I know I am being a pain in the ass but I truly do appreciate all the help At 10:02 AM 10/26/00 -0400, Tom Lane wrote: >"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