Re: Connect to specific cluster on command line

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Carsten Klein <c(dot)klein(at)datagis(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Connect to specific cluster on command line
Date: 2022-05-25 14:58:15
Message-ID: 1928115.1653490695@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carsten Klein <c(dot)klein(at)datagis(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fred Habash 2022-05-25 15:01:43 pg_create_logical_replication_slot in DB1 is blocked by a session in DB2
Previous Message Laurenz Albe 2022-05-25 14:57:44 Re: Connect to specific cluster on command line