Re: postgres user, forgotten password - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: postgres user, forgotten password
Date
Msg-id 20050222145417.GE22550@wolff.to
Whole thread Raw
In response to postgres user, forgotten password  (Zouari Fourat <fourat@gmail.com>)
List pgsql-admin
On Tue, Feb 22, 2005 at 15:07:45 +0100,
  Zouari Fourat <fourat@gmail.com> wrote:
> Hello,
> i forgot the postgres user password, how to resolve this problem.
> once i have my postgres user working, how to list all users on the server ?
> thanks a bunch

Edit pg_hba.conf to use trust or ident authentication for "postgres".
You probably want to make sure there is no external access to the database
while doing this.

SELECT usename FROM pg_user;

pgsql-admin by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: pg_hba.conf
Next
From: Tom Lane
Date:
Subject: Re: pg_hba.conf