Re: how can I get back superuser back?

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Jov <zhao6014(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how can I get back superuser back?
Date: 2011-03-11 10:35:55
Message-ID: 201103111035.p2BAZtU18261@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jov wrote:
> hi pgers
>
> I use pg9.0.3 and do some mistake which cause my superuser
> non-super,is there any way I can get back the superuser privilege? the
> superuser is the only super in my pg server ,without it ,I will not
> able to create new user or new database.

You can modify pg_hba.conf to 'trust' if you lost the password. If you
removed the row, I think you need to start the server in single-user
mode.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Damien Churchill 2011-03-11 11:58:01 Upgrading using streaming replication
Previous Message Jov 2011-03-11 10:27:48 how can I get back superuser back?