Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntsJt-0008Mg-3c for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 14:49:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntsJr-0000Dy-VZ for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 14:49:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntsJr-0000Do-L1 for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 14:49:03 +0000 Received: from smtprelay05.ispgateway.de ([80.67.31.93]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntsJp-0004qF-Oi for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 14:49:03 +0000 Received: from [109.90.124.214] (helo=mail.office.datagis.com) by smtprelay05.ispgateway.de with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ntsJj-0001Kt-LN; Wed, 25 May 2022 16:48:55 +0200 Received: from localhost (intranator.datagis.local [127.0.0.1]) by localhost (Postfix) with ESMTP id 701373BD; Wed, 25 May 2022 16:48:55 +0200 (CEST) X-Virus-Scanned: by Intra2net Mail Security (AVE=8.3.64.148,VDF=8.19.16.46) X-Spam-Status: X-Spam-Level: 0 Received: from [192.168.12.10] (dslb-178-008-249-198.178.008.pools.vodafone-ip.de [178.8.249.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: smtp-auth-user) by mail.office.datagis.com (Postfix) with ESMTPSA id 66585292; Wed, 25 May 2022 16:48:54 +0200 (CEST) Message-ID: Date: Wed, 25 May 2022 16:48:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Connect to specific cluster on command line Content-Language: en-US To: Tom Lane Cc: pgsql-general@lists.postgresql.org References: <1923713.1653489317@sss.pgh.pa.us> From: Carsten Klein Organization: DataGis In-Reply-To: <1923713.1653489317@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Df-Sender: NTkwMDE1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > 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