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 1nts6h-0007wr-2w for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 14:35:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nts6f-0007R6-W5 for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 14:35:25 +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 1nts6f-0007Qx-LS for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 14:35:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nts6d-0004fU-Kr for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 14:35:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 24PEZHv81923714; Wed, 25 May 2022 10:35:17 -0400 From: Tom Lane To: Carsten Klein cc: pgsql-general@lists.postgresql.org Subject: Re: Connect to specific cluster on command line In-reply-to: References: Comments: In-reply-to Carsten Klein message dated "Wed, 25 May 2022 16:30:06 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1923712.1653489317.1@sss.pgh.pa.us> Date: Wed, 25 May 2022 10:35:17 -0400 Message-ID: <1923713.1653489317@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Carsten Klein writes: > how can I connect to a specific cluster on the command line, e. g. with > psql, pg_dump or pg_dumpall? > pg_lsclusters returns a list of all clusters available: 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. regards, tom lane