X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8B2B6D1B508 for ; Thu, 16 Oct 2003 17:08:35 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 43127-03 for ; Thu, 16 Oct 2003 14:08:05 -0300 (ADT) Received: from megazone.bigpanda.com (megazone.bigpanda.com [64.147.171.210]) by svr1.postgresql.org (Postfix) with ESMTP id DEA69D1B515 for ; Thu, 16 Oct 2003 14:08:04 -0300 (ADT) Received: by megazone.bigpanda.com (Postfix, from userid 1001) id 040C7352D4; Thu, 16 Oct 2003 10:08:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by megazone.bigpanda.com (Postfix) with ESMTP id 0281F352A2; Thu, 16 Oct 2003 10:08:00 -0700 (PDT) Date: Thu, 16 Oct 2003 10:07:59 -0700 (PDT) From: Stephan Szabo To: Oli Sennhauser Cc: pgsql-admin@postgresql.org Subject: Re: Second postmaster / second DB cluster In-Reply-To: <3F8EB07D.7040603@bluewin.ch> Message-ID: <20031016100239.C52937@megazone.bigpanda.com> References: <3F8EB07D.7040603@bluewin.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/185 X-Sequence-Number: 10746 On Thu, 16 Oct 2003, Oli Sennhauser wrote: > I would like to start a second postmaster on my server. > First problem was the lock file /tmp/.s.PGSQL.5432.lock > and its socket. But you can workaround that by the -k > parameter. So I was able to start at least 3 clusters... If you want to use separate directories for the socket, you need to use -h (and -p if it's not the default) when connecting with psql. However, you probably just want to use different port numbers to start the postmasters and then use psql -p to connect.