Re: createdb confusion

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: createdb confusion
Дата
Msg-id 21167.997323527@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: createdb confusion  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> How about:

> export PGDATA2=/opt/postgres/data
> initlocation PGDATA2
> createdb -D PGDATA2 mydb

Note also that the environment variable PGDATA2 must be defined in the
*postmaster*'s environment, not only your shell environment.  This is
a crude (and ugly) way of letting the DBA control which directories may
be used as alternate locations --- only what he's listed in the
postmaster's environment may be used.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Justin Clift
Дата:
Сообщение: Re: Re: Mirroring the database?
Следующее
От: "Yusron Hilmy"
Дата:
Сообщение: getting result information of DECLARE CURSOR statement