pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karl DeBisschop <kdebisschop@alert.infoplease.com>
To: Daniel Seichter <daniel@dseichter.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Run 4 postgresql session on ONE server?
Date: 14 Jun 2003 03:46:39 -0400
Message-ID: <1055576710.5042.5.camel@localhost.localdomain> (raw)
In-Reply-To: <bcei52$14q$1@main.gmane.org>
References: <bcaf58$hgv$1@main.gmane.org>
	<Pine.LNX.4.33.0306131553120.21088-100000@css120.ihs.com>
	<bcei52$14q$1@main.gmane.org>

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 <kdebisschop@infoplease.com>
Director of Software Development, Infoplease/Pearson Education






view thread (9+ messages)  latest in thread

Message-ID: <1055576710.5042.5.camel@localhost.localdomain>
Permalink:  ../1055576710.5042.5.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1055576710.5042.5.camel@localhost.localdomain

 · 

reply

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: kdebisschop@alert.infoplease.com, daniel@dseichter.de
  Subject: Re: Run 4 postgresql session on ONE server?
  In-Reply-To: <1055576710.5042.5.camel@localhost.localdomain>
  References: <bcaf58$hgv$1@main.gmane.org> <Pine.LNX.4.33.0306131553120.21088-100000@css120.ihs.com> <bcei52$14q$1@main.gmane.org> <1055576710.5042.5.camel@localhost.localdomain>

* 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