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 1oaQig-0000zm-RS for pgsql-general@arkaria.postgresql.org; Tue, 20 Sep 2022 00:02:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oaQif-0005iC-69 for pgsql-general@arkaria.postgresql.org; Tue, 20 Sep 2022 00:02:33 +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 1oaQid-0005i3-HX for pgsql-general@lists.postgresql.org; Tue, 20 Sep 2022 00:02:32 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oaQiX-0002Qh-Sg for pgsql-general@lists.postgresql.org; Tue, 20 Sep 2022 00:02:31 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6F86132007D7; Mon, 19 Sep 2022 20:02:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 19 Sep 2022 20:02:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm1; t=1663632140; x= 1663718540; bh=XEadBzzT1KvppKqgl9u3eVI1x4xIOqSww/yQHeFHGGk=; b=f iOtH3AfZrPsTZQg2I1HB9K+YSDTb+cQAGq7hm/ImAwGM/o7c8BeRmybInsJnzs8N cielkDyeGqbMiDMxuST9z8NEtT3CPaxOhi5P0a0e3T3x+B40lEBTm5APl2Mu+3mP +JmpEQMO2xWw1EEk0pCp0Nj+EWcTi17zZ0GPNppc5Mb1gzKX/w3abzWr89ki+bYy S8KInV6bzhT8LM4A2g5o10WvAKU5Y5R0j2f2FWSvyAlB/SHC8I43LrMp8qfUx8k/ EnJveLKFQ1CU5C+dr3RizRyhqOQnn+Q6L3UHNgqqfY4W6I287DJP/Z0kVQ/ELkEt RB6/Ea/0rxLBEkkoTQY4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1663632140; x= 1663718540; bh=XEadBzzT1KvppKqgl9u3eVI1x4xIOqSww/yQHeFHGGk=; b=B 98jlE2x9ZHAfLTuZzmkCTegCZnbSbbuIYPPkhiPYHf+tED5ssCOalBb0u2NGbSHf /rzsXN5faOylOW1113bQ8B01aPbL5/tvR8Libcc1i8MMv1xxvSufbohqFqkj+dcs rmPt4GcZ7QdDyeknqf4ozPldAYTC4rUCXK1oLBvk8+EOG3eAl7bU2Swt6QT1vAHO dbDPm5kY5rtZ5x75w8f6NcNfVH+UebRZXXnDv0y5VWuM829mrtrZ5dPiSOz10GYd jDpkgJuRhTRkG5PfxrV1izB3BEtYy/5Bow0ageMtQRN6kdcLmBRavmRdxPoc27Iq xIAgHLh5ttIMY0BubTDVg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedvkedgvdekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhephfegveekfeelffdvgfdvfefftdeujeehheeuieff hfefiefhvdfhgfetgfdvuefgnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrgh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughr ihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 19 Sep 2022 20:02:19 -0400 (EDT) Message-ID: <26bb437e-87cf-fe7d-fe7e-637950edd2ec@aklaver.com> Date: Mon, 19 Sep 2022 17:02:19 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible? Content-Language: en-US To: Bryn Llewellyn , Tom Lane PostgreSQL Cc: pgsql-general list , david.g.johnston@gmail.com References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com> <537913.1663625738@sss.pgh.pa.us> <4EC41A45-78DA-4CB6-B11D-33BCF8288FD9@yugabyte.com> From: Adrian Klaver In-Reply-To: <4EC41A45-78DA-4CB6-B11D-33BCF8288FD9@yugabyte.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/19/22 16:15, Bryn Llewellyn wrote: > // >> /tgl@sss.pgh.pa.us wrote: >> / > So nice to find this waiting for me when I got back to the keyboard > after a late lunch. Thanks, Tom. And thanks to David, too who said much > the same. I'll note how I spelled the magic—as a little memo for me: > > postgres --single -D /usr/local/var/postgres postgres > > The world that the "backend> " prompt opened up for me was rather basic. Which is documented here: https://www.postgresql.org/docs/current/app-postgres.html#APP-POSTGRES-SINGLE-USER -- Adrian Klaver adrian.klaver@aklaver.com