Adding multiple instances to 7.4

Lists: pgsql-admin
From: "Andrew J Delamare" <andrew(dot)delamare(at)amadeo(dot)co(dot)uk>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Adding multiple instances to 7.4
Date: 2004-08-09 10:12:53
Message-ID: E1Bu79E-000LiG-0V@anchor-post-31.mail.demon.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi there,

I'm a little new to postgres but I am wondering (as it doesn't seem to be in
the in site documentation) how to add multiple instances to a 7.4 Postgres
installation.

The scenario is that I have 4 Databases all on separate systems at the
moment that are core the business and the thought was that we could put them
all onto one high availability machine as instances under 1 postgres
install.

Is there any documented way of doing that or does anyone have experience of
doing that they would like to share with me.

Any information is appreciated.

Regards
--
Andrew Delamare
The Cloud Networks Ltd


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Andrew J Delamare" <andrew(dot)delamare(at)amadeo(dot)co(dot)uk>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Adding multiple instances to 7.4
Date: 2004-08-11 06:58:53
Message-ID: 200408110858.53069.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Andrew J Delamare wrote:
> I'm a little new to postgres but I am wondering (as it doesn't seem
> to be in the in site documentation) how to add multiple instances to
> a 7.4 Postgres installation.

Just start the postmaster several times with different data directories
(so they serve different data) and different ports (so you can address
them separately). An alternative might be to run only one instance but
put each of your separate databases into its own PostgreSQL database
under the same instance.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: "Jouneau Luc" <Luc(dot)Jouneau(at)diamant(dot)jouy(dot)inra(dot)fr>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Adding multiple instances to 7.4
Date: 2004-08-11 07:26:00
Message-ID: 006c01c47f74$7399f520$4703668a@pc502jlo
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

> Hi there,
>
> I'm a little new to postgres but I am wondering (as it doesn't seem to be
in
> the in site documentation) how to add multiple instances to a 7.4 Postgres
> installation.
>
> The scenario is that I have 4 Databases all on separate systems at the
> moment that are core the business and the thought was that we could put
them
> all onto one high availability machine as instances under 1 postgres
> install.

You could either put them in the same instance or create with initdb 4
different database cluster locations and launch 4 postmasters listening on
different port (set PGDATA and PGPORT to distinct values before to launch
each postmater).

Jouneau Luc


From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Andrew J Delamare" <andrew(dot)delamare(at)amadeo(dot)co(dot)uk>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Adding multiple instances to 7.4
Date: 2004-08-11 09:14:32
Message-ID: 1092215672.2773.1.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

On Mon, 2004-08-09 at 04:12, Andrew J Delamare wrote:
> Hi there,
>
> I'm a little new to postgres but I am wondering (as it doesn't seem to be in
> the in site documentation) how to add multiple instances to a 7.4 Postgres
> installation.
>
> The scenario is that I have 4 Databases all on separate systems at the
> moment that are core the business and the thought was that we could put them
> all onto one high availability machine as instances under 1 postgres
> install.
>
> Is there any documented way of doing that or does anyone have experience of
> doing that they would like to share with me.

Unless you have some out of the ordinary requirements, you should be
able to just createdb dbname the databases you need. It is possible to
set up multiple clusters, each listening on a different port, but this
means each postmaster has its own shared_memory requirements, and
generally places a heavier load on the server than running the databases
out of the same cluster.