Re: CREATE DATABASE WITH LOCATION

Поиск
Список
Период
Сортировка
От Glen Parker
Тема Re: CREATE DATABASE WITH LOCATION
Дата
Msg-id 005f01c16c94$a525ebd0$0b01a8c0@johnpark.net
обсуждение исходный текст
Ответ на Re: CREATE DATABASE WITH LOCATION  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: CREATE DATABASE WITH LOCATION
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: dropdb to a remote host
Следующее
От: "Glen Parker"
Дата:
Сообщение: Re: CREATE DATABASE WITH LOCATION