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


> 
> pg_lsclusters is not part of core Postgres, and neither is this
> --cluster option you mention.  I'm vaguely aware that some packager
> (Debian I think) has added an overlay of that sort; but you'd need
> to consult the package-level documentation not the community docs
> in order to find out more.
> 

Sorry, my fault, it's Debian/Ubuntu. Actually they must have added the 
--cluster option to the PG programs through source code patches...

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?

Regards, Carsten





view thread (9+ messages)  latest in thread

Message-ID: <fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com>
Permalink:  ../fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com/
Also on:    postgresql.org/message-id/fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com

 · 

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: c.klein@datagis.com, tgl@sss.pgh.pa.us
  Subject: Re: Connect to specific cluster on command line
  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>

* 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