From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
---|---|
To: | Carsten Klein <c(dot)klein(at)datagis(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Connect to specific cluster on command line |
Date: | 2022-05-25 14:57:44 |
Message-ID: | 8707ad0b877ae6245576452347c2efce327a4759.camel@cybertec.at |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Wed, 2022-05-25 at 16:48 +0200, Carsten Klein wrote:
> 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?
With -h you specify the directory containing the socket, and
with -p (port) the name.
So you could
psql -h /var/run/postgresql -p 5555
to use the socket /var/run/postgresql/.s.PGSQL.5555
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-05-25 14:58:15 | Re: Connect to specific cluster on command line |
Previous Message | Andreas Fröde | 2022-05-25 14:54:19 | Re: Connect to specific cluster on command line |