Re: how can I get back superuser back?

From: Jov <zhao6014(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how can I get back superuser back?
Date: 2011-03-12 04:29:48
Message-ID: AANLkTimW3_cr8SNrj-vdCtxE9x2FV2YSfhSLzs6q3vah@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

single-user mode solve my problem.thank you ,Bruce!
在 2011-3-11 下午6:35,"Bruce Momjian" <bruce(at)momjian(dot)us>写道:
> 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

Browse pgsql-general by date

  From Date Subject
Next Message ray 2011-03-12 14:54:58 Re: Ad hoc report writer
Previous Message Gurjeet Singh 2011-03-12 00:16:00 Re: Huge spikes in number of connections doing "PARSE"