Re: Need to run pg_dump from the laptop without entering the password

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: M Sarwar <sarwarmd02(at)outlook(dot)com>
Cc: Ron <ronljohnsonjr(at)gmail(dot)com>, "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Need to run pg_dump from the laptop without entering the password
Date: 2023-10-22 23:19:37
Message-ID: bclyii2cpodrl3nr7uahfpdckyvytoinfiocyacpcwy2xipm7f@fe2r4hdltdpm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 2023-10-23 00:31 +0200, M Sarwar wrote:
> Now Error Message:- "pg_dump: error: connection to database "ngbrpesb" failed: fe_sendauth: no password supplied"

Could be that the hostname in pgpass.conf does not match the hostname in
the connection parameters. The hostname in pgpass.conf is
case-sensitive (not mentioned in the docs), so it must match the exact
spelling as in the connection parameters.

> File names attempted:-
>
> 1. C:\Users\N28068\AppData\Roaming\pgAdmin\pgpass.conf
> 2. C:\Users\N28068\AppData\Roaming\pgAdmin\.pgpass
> 3. C:\Users\N28068\AppData\Roaming\postgresql\pgpass.conf

Path #3 should be the correct one if user N28068 runs pg_dump. You also
wrote that you want to schedule the execution of pg_dump. Does the
scheduled job also run as that user?

--
Erik

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron 2023-10-22 23:55:19 Re: Need to run pg_dump from the laptop without entering the password
Previous Message M Sarwar 2023-10-22 22:31:22 Re: Need to run pg_dump from the laptop without entering the password