Re: running two servers on one machine

From: Eric Smith <eric_h_smith(at)mac(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: running two servers on one machine
Date: 2009-03-30 02:59:19
Message-ID: FF5256B2-8C7A-4D71-B8FA-5F5977347163@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas,

When I start the servers, I use different ports via the -p option. Is
that equivalent to using different listener ports in postgresql.conf?

Thanks,
Eric

On Mar 28, 2009, at 3:51 PM, Thomas Kellerer wrote:

> 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
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-03-30 03:19:45 Re: running two servers on one machine
Previous Message Eric Smith 2009-03-30 02:55:07 Re: running two servers on one machine