Re: Alternate Database Locations

Поиск
Список
Период
Сортировка
От Brian C. Doyle
Тема Re: Alternate Database Locations
Дата
Msg-id 5.0.0.25.2.20001025151441.088d35d0@pop.mindspring.com
обсуждение исходный текст
Ответ на Re: Alternate Database Locations  ("Brian C. Doyle" <bcdoyle@mindspring.com>)
Ответы Re: Alternate Database Locations  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Alternate Database Locations  (indraneel@www.cdfd.org.in)
Список 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@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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Jie Liang
Дата:
Сообщение: How to call a shell command in rule
Следующее
От: "Roderick A. Anderson"
Дата:
Сообщение: Re: Alternate Database Locations