Re: How to pg_dumpall without root password

From: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
To: Dat Chu <dattanchu(at)gmail(dot)com>
Subject: Re: How to pg_dumpall without root password
Date: 2007-07-11 07:07:34
Message-ID: 469481B6.9080802@theendofthetunnel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11.07.2007 08:10, Dat Chu wrote:
> I am the new sysadmin and was given the task to move a postgresql
> installation from one box to another. So I want to do pg_dumpall .
>
> However, there is no record of postgresql superuser/root password. I
> do have root access to the system however.
>
> Does anyone have a suggestion on what I should do?

Locate pg_hba.conf (should reside in $PGDATA), open it in an editor,
replace md5 with trust.

--
Regards,
Hannes Dorbath

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2007-07-11 08:19:49 Re: [GENERAL] pgpass.conf
Previous Message Dat Chu 2007-07-11 06:10:21 How to pg_dumpall without root password