Re: CREATE DATABASE WITH LOCATION - Mailing list pgsql-general

From Glen Parker
Subject Re: CREATE DATABASE WITH LOCATION
Date
Msg-id 005f01c16c94$a525ebd0$0b01a8c0@johnpark.net
Whole thread Raw
In response to Re: CREATE DATABASE WITH LOCATION  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: CREATE DATABASE WITH LOCATION  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> > having a little problem with the alternate DB location stuff, on redhat
> > 7.2/postgres 7.1.3.  'CREATE DATABASE WITH LOCATION 'PGDATA2'
> claims that
> > PGDATA2 environment not set, although i've defined it in
> .bash_profile (for
> > user posgres) and verified that it takes when i 'su -l
> postgres'.  yes, i
> > restarted the postmaster.
>
> Exactly how did you restart the postmaster?

service postgresql restart

and when that didnt work

service postgresql stop
service postgresql start

and then a reboot which also didnt work

> Also, did you remember to "export PGDATA2" from the profile file, not
> merely set its value?

yep, sure did.  actually, if i specify 'PGDATA' as the location, i get the
same error.  that var is exported already in the stock .bash_profile.

glen




pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: dropdb to a remote host
Next
From: "Glen Parker"
Date:
Subject: Re: CREATE DATABASE WITH LOCATION