Re: two or more pg installations running as the same user - Mailing list pgsql-general

From Rafael Martinez
Subject Re: two or more pg installations running as the same user
Date
Msg-id 492BF9DD.8070203@usit.uio.no
Whole thread Raw
In response to Re: two or more pg installations running as the same user  ("Filip Rembiałkowski" <plk.zuber@gmail.com>)
List 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 by date:

Previous
From: "Filip Rembiałkowski"
Date:
Subject: Re: two or more pg installations running as the same user
Next
From: "Dr.ONE"
Date:
Subject: PostgreSQL 8.3.5 client_encoding WIN1251 trouble