pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Balaji Ganesan <bganesan@lsil.com>
To: pgsql-admin@postgresql.org
Subject: Running multiple postmaster instances in the same machine
Date: Mon, 28 Feb 2005 15:57:32 -0800
Message-ID: <4223AFEC.3050401@lsil.com> (raw)

Hi,
I'm trying to run multiple postmaster instances on the same  machine. I 
want to start and stop the server
from inside of my application. However, for each of these instances, I 
want to specify a different "storage cluster".
I understand that I can do that while initializing (initdb -D <path>). 
But after I start multiple instances, how do I let psql
know which server I'd like to connect to. Since they all run on the same 
port, whenever I run psql it only connects to the last server for which 
I called initdb on. Since psql doesn't take -D <storage directory>, I'm  
not sure how I can accomplish this.

Any help is welcome.

Thanks
-BG



view thread (2+ messages)  latest in thread

Message-ID: <4223AFEC.3050401@lsil.com>
Permalink:  ../4223AFEC.3050401@lsil.com/
Also on:    postgresql.org/message-id/4223AFEC.3050401@lsil.com

 · 

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: bganesan@lsil.com
  Subject: Re: Running multiple postmaster instances in the same machine
  In-Reply-To: <4223AFEC.3050401@lsil.com>
  References: <4223AFEC.3050401@lsil.com>

* 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