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 3685830E25B for ; Sat, 14 Jun 2003 07:46:41 +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 65228-09 for ; Sat, 14 Jun 2003 04:46:30 -0300 (ADT) Received: from alert.infoplease.com (unknown [192.207.117.75]) by svr1.postgresql.org (Postfix) with ESMTP id ED18030E23D for ; Sat, 14 Jun 2003 04:46:29 -0300 (ADT) Received: from nh--1672-7 (h00e0185ef440.ne.client2.attbi.com [24.60.73.168]) by alert.infoplease.com (8.11.6/8.11.6) with SMTP id h5E7kJk26256; Sat, 14 Jun 2003 03:46:19 -0400 Subject: Re: Run 4 postgresql session on ONE server? From: Karl DeBisschop To: Daniel Seichter Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Message-Id: <1055576710.5042.5.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 14 Jun 2003 03:46:39 -0400 Content-Transfer-Encoding: 7bit X-Archive-Number: 200306/150 X-Sequence-Number: 9141 On Sat, 2003-06-14 at 03:20, Daniel Seichter wrote: > Good morning, > > > 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. > Well, it looks easy *g* > I will do this today and hope, it work. > > > Then when you connect just specify the port of the database instance you > > need. Since each one is running as a different user with different > > postgresql.conf and pg_hba.conf files you can lock the production instance > > down tight to prevent brain farts (oops, I just dropped a table in the > > production database) and you're gold. > Ok, at the moment , I only can say: thank you, and I had to test it during > this weekend to start at the next week with the configuration. BTW -- this is pretty easy with the RPMs (I think you said you were on RedHat). Just make a symlink to the init script. Call it 'pg2' Then put the port and pgdata definitions in /etc/sysconfig/pgsql/pg2 -- Karl DeBisschop Director of Software Development, Infoplease/Pearson Education