Re: running two servers on one machine

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: running two servers on one machine
Date: 2009-03-28 22:51:35
Message-ID: gqm9lf$pj3$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian Klaver wrote on 28.03.2009 23:37:
> On Saturday 28 March 2009 3:27:15 pm Eric Smith wrote:
>> All,
>>
>> I'm trying to run two database clusters on a single machine, and am
>> failing. I use initdb to create the two clusters... each has their
>> own directory structure. I can start one server or the other with
>> pg_ctl, but once the first starts, the second just hangs on "waiting
>> for server to start...".
>
> Are you pointing pg_ctl at the right DATA directory for each cluster using
> the -D switch?
>

You also have to make sure you assign different listener ports for both servers
in postgresql.conf

Thomas

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2009-03-28 23:13:26 Re: running two servers on one machine
Previous Message Adrian Klaver 2009-03-28 22:37:18 Re: running two servers on one machine