From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Bryn Llewellyn <bryn@yugabyte.com>
To: Tom Lane PostgreSQL <tgl@sss.pgh.pa.us>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Cc: david.g.johnston@gmail.com
Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible?
Date: Mon, 19 Sep 2022 17:02:19 -0700
Message-ID: <26bb437e-87cf-fe7d-fe7e-637950edd2ec@aklaver.com> (raw)
In-Reply-To: <4EC41A45-78DA-4CB6-B11D-33BCF8288FD9@yugabyte.com>
References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com>
<537913.1663625738@sss.pgh.pa.us>
<4EC41A45-78DA-4CB6-B11D-33BCF8288FD9@yugabyte.com>
On 9/19/22 16:15, Bryn Llewellyn wrote:
> //
>> /tgl@sss.pgh.pa.us <mailto: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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, bryn@yugabyte.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible?
In-Reply-To: <26bb437e-87cf-fe7d-fe7e-637950edd2ec@aklaver.com>
References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com> <537913.1663625738@sss.pgh.pa.us> <4EC41A45-78DA-4CB6-B11D-33BCF8288FD9@yugabyte.com> <26bb437e-87cf-fe7d-fe7e-637950edd2ec@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox