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

"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: <5390.972568933@sss.pgh.pa.us>
Permalink:  ../5390.972568933@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5390.972568933@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, bcdoyle@mindspring.com
  Subject: Re: Alternate Database Locations
  In-Reply-To: <5390.972568933@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