From: | "Brian C(dot) Doyle" <bcdoyle(at)mindspring(dot)com> |
---|---|
To: | "Roderick A(dot) Anderson" <raanders(at)altoplanos(dot)net> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Alternate Database Locations |
Date: | 2000-10-25 19:20:29 |
Message-ID: | 5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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(at)altoplanos(dot)net Altoplanos Information Systems, Inc.
>Voice: 208.765.6149 212 S. 11th Street, Suite 5
>FAX: 208.664.5299 Coeur d'Alene, ID 83814
From | Date | Subject | |
---|---|---|---|
Next Message | Jie Liang | 2000-10-25 23:07:53 | Re: Problem whith Stored queries |
Previous Message | Roderick A. Anderson | 2000-10-25 19:04:24 | Re: Alternate Database Locations |