Re: Run 4 postgresql session on ONE server?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
Cc: Daniel Seichter <daniel(at)dseichter(dot)de>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Run 4 postgresql session on ONE server?
Date: 2003-06-13 22:54:41
Message-ID: 4485.1055544881@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> writes:
> Yes, you can do it. All you have to do is create four seperate accounts
> for it to run under (pgsql1, pgsql2, pgsql3, pgsql4) and then in each of
> those accounts, set up a different PGDATA value and initdb as that user.
> Then edit each account's postgresql.conf to have a different port number
> (I just incremented from 5432 to 5433 etc...) and start them up.

You don't really need N users, unless you have more protection concerns
than you mentioned (like you want each database to have its own DBA with
no access to the other ones). A single "postgres" Unix userid can serve
for all the postmasters in typical cases. All you really need are a
separate data directory and a separate port number for each postmaster.

Pay attention though to the amount of machine resources you are
committing to each postmaster. You'd probably not want to push
shared_buffers up real far, for example.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Joe Conway 2003-06-14 05:34:26 Re: list ranking
Previous Message scott.marlowe 2003-06-13 21:55:32 Re: Run 4 postgresql session on ONE server?