Re: pg_dump Error in Windows - Mailing list pgsql-admin

From Shreeyansh Dba
Subject Re: pg_dump Error in Windows
Date
Msg-id CAGDYbUM_tp=xDYP2-dpSuRBYKHg7HtsQrfVWpqcA24BzKgwSuw@mail.gmail.com
Whole thread Raw
In response to RE: pg_dump Error in Windows  (<soumik.bhattacharjee@kpn.com>)
Responses RE: pg_dump Error in Windows  (<soumik.bhattacharjee@kpn.com>)
List pgsql-admin
To perform any backup requires DB level superuser reset postgres db user password then try . Also make sure user entry in pg_hba.file  if you are using authentication method to md5.

Thanks & Regards,
Shreeyansh DBA Team
www.shreeyansh.com


On Thu, Mar 21, 2019 at 5:23 PM <soumik.bhattacharjee@kpn.com> wrote:

Hi Shreeyansh,

 

In local and it’s a windows server, yes “testusr” is the local admin user and infact postgres is also installed using this “testusr”.

 

Thanks

Soumik

 

From: Shreeyansh Dba <shreeyansh2014@gmail.com>
Sent: Thursday, March 21, 2019 12:45 PM
To: Bhattacharjee, Soumik <soumik.bhattacharjee@kpn.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: pg_dump Error in Windows

 

Hi Soumik,

 

Does your "testuser" have super user privilege..? User must have super user privileges to perform pg_dumpall.

 

Are you trying to perform backup from remote server or local...?


Thanks & Regards,
Shreeyansh DBA Team
www.shreeyansh.com

 

 

On Thu, Mar 21, 2019 at 3:46 PM <soumik.bhattacharjee@kpn.com> wrote:

Hello All,

 

When I am trying to take backup using pg_dump.exe , it’s asking for password, when I provide the default password of “postgres” it never accepts and throws below error-

 

pg_dump: [archiver (db)] connection to database "test_database" failed: FATAL:  Ident authentication failed for user "testusr"

 

Is there any changes I need to do in pg_hba.conf file?

 

Please suggest a solution.

 

Thanks

Soumik

 

 

pgsql-admin by date:

Previous
From: Holger Jakobs
Date:
Subject: Re: pg_dump Error in Windows
Next
From:
Date:
Subject: RE: pg_dump Error in Windows