Re: Quickie about Database locations - Mailing list pgsql-admin

From Igor Georgiev
Subject Re: Quickie about Database locations
Date
Msg-id 010301c279e6$cf722b00$0b0546c0@alpha.bg
Whole thread Raw
In response to Quickie about Database locations  ("Gareth Kirwan" <gbjk@thermeoneurope.com>)
List 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 by date:

Previous
From: "Gareth Kirwan"
Date:
Subject: Re: Quickie about Database locations
Next
From: Stephan Szabo
Date:
Subject: Re: Security question : Database access control