Re: multiple instances on one box? - Mailing list pgsql-admin

From Tom Lane
Subject Re: multiple instances on one box?
Date
Msg-id 13148.1023148413@sss.pgh.pa.us
Whole thread Raw
In response to multiple instances on one box?  (Tim Ellis <Tim.Ellis@gamet.com>)
List pgsql-admin
Tim Ellis <Tim.Ellis@gamet.com> writes:
> Hopefully not a FAQ, but I wonder, how do I start multiple Postgres
> instances on one computer?

Isn't it in the FAQ?  Just give them different port numbers and
data directories, and away you go.  (As long as you don't exceed
kernel limits on total size of shared memory, total number of
semaphores, open files, etc.)

I concur with Andrew Perrin's concerns about why you are doing this,
though.  I can think of a couple of valid reasons:

1. You want to run multiple Postgres versions.  (That's why I have
three or four postmasters running here.)

2. You want airtight separation between two instances, eg because
you are doing C-code development in one of the instances and so you
occasionally crash it.

But as a mechanism for redundancy against hardware failures it doesn't
seem particularly useful.

            regards, tom lane

pgsql-admin by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: configure datatype name > 31?
Next
From: Tim Ellis
Date:
Subject: Re: multiple instances on one box?