Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 6631A476240 for ; Mon, 3 Jun 2002 19:58:15 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 7940347624D for ; Mon, 3 Jun 2002 19:53:33 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g53NrXb13151; Mon, 3 Jun 2002 19:53:33 -0400 (EDT) To: Tim Ellis Cc: pgsql-admin@postgresql.org Subject: Re: multiple instances on one box? In-reply-to: <20020603113049.7a45a143.Tim.Ellis@gamet.com> References: <20020603113049.7a45a143.Tim.Ellis@gamet.com> Comments: In-reply-to Tim Ellis message dated "Mon, 03 Jun 2002 11:30:49 -0700" Date: Mon, 03 Jun 2002 19:53:33 -0400 Message-ID: <13148.1023148413@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200206/15 X-Sequence-Number: 4450 Tim Ellis 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