Re: Forgot Root Password - Mailing list pgsql-admin

From Joshua D. Drake
Subject Re: Forgot Root Password
Date
Msg-id 4813459B.9000001@commandprompt.com
Whole thread Raw
In response to Re: Forgot Root Password  (Ray Stell <stellr@cns.vt.edu>)
List pgsql-admin
Ray Stell wrote:
> On Sat, Apr 26, 2008 at 11:00:35AM +0530, Kranti K K Parisa? wrote:
>> Can anyone suggest a way to retrieve/update the postgres root password ?
>
>
> edit pg_hba.conf so that localhost connections from localhost are trusted maybe like
> this:
>
> host    all         all         127.0.0.1/32          trust
>
> you have to restart, but then you can do an alter user and so can all the other local
> users.

You do not need to restart, just reload.

pg_ctl -D data reload

Joshua D. Drake



pgsql-admin by date:

Previous
From: Craig McElroy
Date:
Subject: Re: Forgot Root Password
Next
From: Tom Lane
Date:
Subject: Re: Forgot Root Password