| From: | "Glen Parker" <glenebob(at)nwlink(dot)com> |
|---|---|
| To: | "Pg-General" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: CREATE DATABASE WITH LOCATION |
| Date: | 2001-11-13 22:43:42 |
| Message-ID: | 005f01c16c94$a525ebd0$0b01a8c0@johnpark.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2001-11-13 23:38:19 | Re: CREATE DATABASE WITH LOCATION |
| Previous Message | Bruce Momjian | 2001-11-13 22:26:37 | Re: dropdb to a remote host |