Re: 2 instances of postmaster with different data directories

From: Richard Huxton <dev(at)archonet(dot)com>
To: "surabhi(dot)ahuja" <surabhi(dot)ahuja(at)iiitb(dot)ac(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: 2 instances of postmaster with different data directories
Date: 2006-01-26 08:52:41
Message-ID: 43D88DD9.6060609@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

surabhi.ahuja wrote:
> Hi,
>
> I am going to integrate my dtabase into a system. That system also
> has another database and uses postgres.
>
> However they have their own data directory and start postmaster by
> specifying that.
>
> I have seen that it is possible to run multiple postmasters on
> multiple ports by specifying diffrent data directories.
>
> But we are still to decide if we should go with the above
> approach....or is it better to have just one data directory and one
> instance of postmaster on the default port.

Two instances will be less efficient:
- two separate areas of shared-memory
- two caches
- possible I/O competition (particularly with WAL I'd expect)
- twice as many upgrades needed when patches are released
but will allow:
- two different versions of PostgreSQL
- separate user lists

Does that help?
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-01-26 09:02:13 Re: Connected user in a triggerfunction
Previous Message Richard Huxton 2006-01-26 08:49:01 Re: comparing OLD and NEW in update trigger..