pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carsten Klein <c.klein@datagis.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Connect to specific cluster on command line
Date: Wed, 25 May 2022 10:58:15 -0400
Message-ID: <1928115.1653490695@sss.pgh.pa.us> (raw)
In-Reply-To: <fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com>
References: <fb28c2b8-445c-0d9b-e12a-0fc827f6c1f8@datagis.com>
	<1923713.1653489317@sss.pgh.pa.us>
	<fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com>

Carsten Klein <c.klein@datagis.com> writes:
> So, forget about the packager. With core PostgreSQL tools it is possible 
> to have more than one cluster. How do you specify what cluster to 
> connect to with psql or pg_dump? Do I have to specify the cluster's 
> corresponding Unix domain socket directory via the --host option?

Usually you'd use -p (--port).  You *could* specify the exact path
to the postmaster's socket via -h, but I think that's not idiomatic.

			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1928115.1653490695@sss.pgh.pa.us>
Permalink:  ../1928115.1653490695@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1928115.1653490695@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, c.klein@datagis.com
  Subject: Re: Connect to specific cluster on command line
  In-Reply-To: <1928115.1653490695@sss.pgh.pa.us>
  References: <fb28c2b8-445c-0d9b-e12a-0fc827f6c1f8@datagis.com> <1923713.1653489317@sss.pgh.pa.us> <fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com> <1928115.1653490695@sss.pgh.pa.us>

* 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