Re: Superuser accout (PostgreSQL 9.0.4)

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: Grzegorz Szpetkowski <gszpetkowski(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Superuser accout (PostgreSQL 9.0.4)
Date: 2011-04-08 03:29:22
Message-ID: BANLkTinb5jo2CoKHnTDBC3AsbTUtCVm=sw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Thu, Apr 7, 2011 at 11:15 PM, Grzegorz Szpetkowski
<gszpetkowski(at)gmail(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Andrej 2011-04-08 03:34:08 Re: Superuser accout (PostgreSQL 9.0.4)
Previous Message Grzegorz Szpetkowski 2011-04-08 03:21:00 Valid role name (PostgreSQL 9.0.4)