Re: Connect to specific cluster on command line - Mailing list pgsql-general

From Carsten Klein
Subject Re: Connect to specific cluster on command line
Date
Msg-id fb4a1e7c-9251-a7d6-103b-2fdf00e7ff10@datagis.com
Whole thread Raw
In response to Re: Connect to specific cluster on command line  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Connect to specific cluster on command line
Re: Connect to specific cluster on command line
Re: Connect to specific cluster on command line
Re: Connect to specific cluster on command line
List pgsql-general
> 
> 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



pgsql-general by date:

Previous
From: Rob Sargent
Date:
Subject: Re: connect permission based on database name
Next
From: Andreas Fröde
Date:
Subject: Re: Connect to specific cluster on command line