Running multiple postmaster instances in the same machine

From: Balaji Ganesan <bganesan(at)lsil(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Running multiple postmaster instances in the same machine
Date: 2005-02-28 23:57:32
Message-ID: 4223AFEC.3050401@lsil.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Browse pgsql-admin by date

  From Date Subject
Next Message Margabandhu De.Sambath 2005-03-01 02:06:53 unsubscribe
Previous Message Greg Patnude 2005-02-28 22:22:59 Procedures, rules & UDF's....