| От | 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 |
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/blainitlocation PGDATA2initlocation 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 failedI echo it - to test it - it works.I put it in the bash_profile of the user, restart postgres... nothing...Any ideas
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера