From: Tom Lane <tgl@sss.pgh.pa.us>
To: scott.marlowe <scott.marlowe@ihs.com>
Cc: Daniel Seichter <daniel@dseichter.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Run 4 postgresql session on ONE server?
Date: Fri, 13 Jun 2003 18:54:41 -0400
Message-ID: <4485.1055544881@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0306131553120.21088-100000@css120.ihs.com>
References: <Pine.LNX.4.33.0306131553120.21088-100000@css120.ihs.com>
"scott.marlowe" <scott.marlowe@ihs.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, scott.marlowe@ihs.com, daniel@dseichter.de
Subject: Re: Run 4 postgresql session on ONE server?
In-Reply-To: <4485.1055544881@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0306131553120.21088-100000@css120.ihs.com> <4485.1055544881@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox