pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian C. Doyle <bcdoyle@mindspring.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alternate Database Locations
Date: Thu, 26 Oct 2000 10:56:05 -0400
Message-ID: <5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com> (raw)
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>

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" <bcdoyle@mindspring.com> 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




view thread (12+ messages)  latest in thread

Message-ID: <5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com>
Permalink:  ../5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com/
Also on:    postgresql.org/message-id/5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bcdoyle@mindspring.com, tgl@sss.pgh.pa.us
  Subject: Re: Alternate Database Locations
  In-Reply-To: <5.0.0.25.2.20001026105038.054c5a90@pop.mindspring.com>

* 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