Re: two or more pg installations running as the same user

Поиск
Список
Период
Сортировка
От Rafael Martinez
Тема Re: two or more pg installations running as the same user
Дата
Msg-id 492BF9DD.8070203@usit.uio.no
обсуждение исходный текст
Ответ на Re: two or more pg installations running as the same user  ("Filip Rembiałkowski" <plk.zuber@gmail.com>)
Список pgsql-general
Filip Rembiałkowski wrote:
>
>
> 2008/11/25 Grzegorz Jaśkiewicz <gryzman@gmail.com
> <mailto:gryzman@gmail.com>>
>
>     hey folks,
>
>     I am thinking about testing enviroment here, and gotta setup
>     temporary instalation of postgres for that. More than one, because
>     software operates on few different connections, to different databases.
>     I know I can do it under same user, just by changing PGDATA/PGPORT
>     before initdb gets to run. But will it be safe otherwise ?
>
>
> yes, no problem with that. for me it was just:
>

Hello

Another method we use to run multiple postgresql clusters and multiple
versions on the same server is to install extra IPs on the server using
the same (default) port.

If you use this method, it is very important that you define the right
listen_addresses values and different unix_socket_directory values for
each cluster running on the same server.

We connect mostly via tcp/ip and not via sockets, this way the clients
do not have to remember the port running their databases.

Of course the initdb and start steps are the same as Filip has commented.

regards,
--
 Rafael Martinez, <r.m.guerrero@usit.uio.no>
 Center for Information Technology Services
 University of Oslo, Norway

 PGP Public Key: http://folk.uio.no/rafael/

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

Предыдущее
От: "Filip Rembiałkowski"
Дата:
Сообщение: Re: two or more pg installations running as the same user
Следующее
От: "Dr.ONE"
Дата:
Сообщение: PostgreSQL 8.3.5 client_encoding WIN1251 trouble