pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian C. Doyle <bcdoyle@mindspring.com>
To: Roderick A. Anderson <raanders@altoplanos.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Alternate Database Locations
Date: Wed, 25 Oct 2000 15:20:29 -0400
Message-ID: <5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com> (raw)
In-Reply-To: <Pine.LNX.4.10.10010251202380.31193-100000@altoplanos.net>
References: <4.3.2.7.2.20001024190037.00e2fa80@pop.mindspring.com>

Well I got it working kinda.

You have set up an environment for the new directory and export it under 
the PGSQL super user account

PGDATA2=/home/userid
export PGDATA2

Then run
initlocation PGDATA2

After that you have to restart your postmaster with the data dir as PGDATA2
postmaster -d PGDATA2

Now you can greate a new db in a new location
createdb mydb -D PGDATA2

that is it and you have a new location for ALL your database if you use it 
... If you do not add -D PGDATA2 for future db it writes to the default 
location but you may have problems access it.

I am still trying to find out how to get multiple postmasters running on 
different ports at the same time.  Does anyone have any clue how to do that?


At 12:04 PM 10/25/00 -0700, Roderick A. Anderson wrote:
>On Tue, 24 Oct 2000, Brian C. Doyle wrote:
>
> > Never mind... I got it working
>
>OK, don't play your cards so close to the vest.  What was the problem (and
>solution)?
>
>
>TIA,
>Rod
>--
>Roderick A. Anderson
>raanders@altoplanos.net               Altoplanos Information Systems, Inc.
>Voice: 208.765.6149                            212 S. 11th Street, Suite 5
>FAX: 208.664.5299                                  Coeur d'Alene, ID 83814




view thread (12+ messages)  latest in thread

Message-ID: <5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com>
Permalink:  ../5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com/
Also on:    postgresql.org/message-id/5.0.0.25.2.20001025151441.088d35d0@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, raanders@altoplanos.net
  Subject: Re: Alternate Database Locations
  In-Reply-To: <5.0.0.25.2.20001025151441.088d35d0@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