pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bryn Llewellyn <bryn@yugabyte.com>
Cc: pgsql-general list <pgsql-general@lists.postgresql.org>
Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible?
Date: Mon, 19 Sep 2022 18:15:38 -0400
Message-ID: <537913.1663625738@sss.pgh.pa.us> (raw)
In-Reply-To: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com>
References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com>

Bryn Llewellyn <bryn@yugabyte.com> 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





view thread (10+ messages)  latest in thread

Message-ID: <537913.1663625738@sss.pgh.pa.us>
Permalink:  ../537913.1663625738@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/537913.1663625738@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, bryn@yugabyte.com
  Subject: Re: I slipped up so that no existing role allows connection. Is rescue possible?
  In-Reply-To: <537913.1663625738@sss.pgh.pa.us>
  References: <90C875A7-12B9-4667-BE38-17DFB7C44B0C@yugabyte.com> <537913.1663625738@sss.pgh.pa.us>

* 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