Re: Quickie about Database locations

Поиск
Список
Период
Сортировка
От Igor Georgiev
Тема Re: Quickie about Database locations
Дата
Msg-id 010301c279e6$cf722b00$0b0546c0@alpha.bg
обсуждение исходный текст
Ответ на Quickie about Database locations  ("Gareth Kirwan" <gbjk@thermeoneurope.com>)
Список pgsql-admin
Hey all!
I'm muddled up about something.
I'm creating a new database, and absolute paths are disallowed.
Therefore I su to postgres ( the owner of the service ) and run the following:
 
export PGDATA2=/bla/bla/bla
initlocation PGDATA2
 
initlocation returns fine - telling me to create the database as per usual.
I therefore do:
 
createdb v2 -D 'PGDATA2'
 
But I get:
 
ERROR:  Postmaster environment variable 'PGDATA2' not set
createdb: database creation failed
 
I echo it - to test it - it works.
I put it in the bash_profile of the user, restart postgres... nothing...
 
Any ideas   
********
export PGDATA2=/bla/bla/bla ...
how about restart postmaster ?
 

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

Предыдущее
От: "Gareth Kirwan"
Дата:
Сообщение: Re: Quickie about Database locations
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Security question : Database access control