X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 80A5D30DD48 for ; Fri, 13 Jun 2003 22:54:56 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 22856-03 for ; Fri, 13 Jun 2003 19:54:46 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id B8BB930DC71 for ; Fri, 13 Jun 2003 19:54:45 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5DMsfU6004486; Fri, 13 Jun 2003 18:54:41 -0400 (EDT) To: "scott.marlowe" Cc: Daniel Seichter , pgsql-admin@postgresql.org Subject: Re: Run 4 postgresql session on ONE server? In-reply-to: References: Comments: In-reply-to "scott.marlowe" message dated "Fri, 13 Jun 2003 15:55:32 -0600" Date: Fri, 13 Jun 2003 18:54:41 -0400 Message-ID: <4485.1055544881@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/147 X-Sequence-Number: 9138 "scott.marlowe" 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