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 1oaP3H-0001ha-2T for pgsql-general@arkaria.postgresql.org; Mon, 19 Sep 2022 22:15:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaP3G-0007Rv-1Q for pgsql-general@arkaria.postgresql.org; Mon, 19 Sep 2022 22:15:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaP3F-0007Rm-NJ for pgsql-general@lists.postgresql.org; Mon, 19 Sep 2022 22:15:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaP3D-0008He-GO for pgsql-general@lists.postgresql.org; Mon, 19 Sep 2022 22:15:40 +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 28JMFcgR537914; Mon, 19 Sep 2022 18:15:38 -0400 From: Tom Lane To: Bryn Llewellyn cc: pgsql-general list Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible? In-reply-to: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com> References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com> Comments: In-reply-to Bryn Llewellyn message dated "Mon, 19 Sep 2022 15:06:02 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <537912.1663625738.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Sep 2022 18:15:38 -0400 Message-ID: <537913.1663625738@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bryn Llewellyn writes: > Is rescue possible? Or must I simply remove my cluster and use "pg_ctl" = to create a new one within my existing PG 14.5 software env? Stop the cluster, start a single-user session ("postgres --single"), re-grant superuser to the postgres user and/or whatever else you wish you could take back, end that session, restart the cluster. (You're not the first to mess up like this.) regards, tom lane