how to recover superuser password ?

From: Patrick <pat(at)patoche(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: how to recover superuser password ?
Date: 2002-12-02 16:34:04
Message-ID: 20021202163404.GH28102@nohope.patoche.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

My superuser (postgres) had a password.
I attempted to change it by doing (and not thinking very much):
template1=# alter user postgres with password '';
ALTER USER
template1=# \q

After what I am unable to connect anymore as superuser, which is a
big problem (plain [ENTER] on the password prompt is rejected)

Is there any way to change the superuser password without completely
deleting my postgreSQL installation which is in use in production ?
(I have complete unix root access)

Thanks to all in advance.
I did not found anything relevant online.

Patrick.

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Joel Burton 2002-12-02 16:42:25 Re: how to recover superuser password ?
Previous Message Chris Boget 2002-12-02 14:31:44 Starting postmaster in rc.local