Re: Superuser accout (PostgreSQL 9.0.4) - Mailing list pgsql-novice

From Josh Kupershmidt
Subject Re: Superuser accout (PostgreSQL 9.0.4)
Date
Msg-id BANLkTinb5jo2CoKHnTDBC3AsbTUtCVm=sw@mail.gmail.com
Whole thread Raw
In response to Superuser accout (PostgreSQL 9.0.4)  (Grzegorz Szpetkowski <gszpetkowski@gmail.com>)
Responses Re: Superuser accout (PostgreSQL 9.0.4)
List pgsql-novice
On Thu, Apr 7, 2011 at 11:15 PM, Grzegorz Szpetkowski
<gszpetkowski@gmail.com> wrote:
> Is there any way to restore superuser without recreating cluster from
> scratch (initdb, pg_createcluster etc.) ? Or better should PostgreSQL
> prevent for such situation (mistake command) ? I don't know is there
> any "at least one superuser per cluster rule" (?)

I think you should be able to start Postgres in single-user mode, see:
<http://www.postgresql.org/docs/9.0/static/app-postgres.html>
and from there you can fix your superuser privileges.

Josh

pgsql-novice by date:

Previous
From: Grzegorz Szpetkowski
Date:
Subject: Valid role name (PostgreSQL 9.0.4)
Next
From: Andrej
Date:
Subject: Re: Superuser accout (PostgreSQL 9.0.4)