Re: More than one installation on the same machine

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: More than one installation on the same machine
Дата
Msg-id 9198.1059228014@sss.pgh.pa.us
обсуждение исходный текст
Ответ на More than one installation on the same machine  (Jay R <jaysjaded@yahoo.com>)
Список pgsql-novice
Jay R <jaysjaded@yahoo.com> writes:
> I've installed 7.3 in its own directory, using the
> default configuration parameters, and I gather from
> the 7.3 documentation that I need to start it up on a
> different port and provide a different socket to point
> DBI::Pg at.  (7.2 has port 5432 and a socket in /tmp)
>  But I couldn't figure out quite how to do it, based
> on the documentation.

Use "-D dir" or set $PGDATA to point initdb at a nonstandard data
directory.  Then start the new postmaster with the same switch or
environment, plus a "-p port" switch (or instead of -p, set the port
number in postgresql.conf).

Client-side code will also need to be pointed at that port.  If you were
using libpq-derived code you could handle this transparently by setting
$PGPORT in the client ennvironment, but I forget whether that works for
DBI::Pg.

            regards, tom lane

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

Предыдущее
От: Jay R
Дата:
Сообщение: More than one installation on the same machine
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: More than one installation on the same machine