From: M Sarwar <sarwarmd02@outlook.com>
To: Erik Wienhold <ewie@ewie.name>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Need to run pg_dump from the laptop without entering the password
Date: Mon, 23 Oct 2023 01:27:55 +0000
Message-ID: <DM4PR19MB59780C2425E2D6B8DB5AC26ED3D8A@DM4PR19MB5978.namprd19.prod.outlook.com> (raw)
In-Reply-To: <bclyii2cpodrl3nr7uahfpdckyvytoinfiocyacpcwy2xipm7f@fe2r4hdltdpm>
References: <DM4PR19MB59780DA57A7F16460518F146D3DAA@DM4PR19MB5978.namprd19.prod.outlook.com>
<2194a8e8-f1cc-4c72-96cb-710dcd973094@gmail.com>
<DM4PR19MB59787504E4D37FF85BB08C9FD3D9A@DM4PR19MB5978.namprd19.prod.outlook.com>
<bclyii2cpodrl3nr7uahfpdckyvytoinfiocyacpcwy2xipm7f@fe2r4hdltdpm>
Hi Erik,
1. After seeing your email, I have verified another time now. It is a RDS endpoint.
I see that host naming convention followed correct. Case sensitivity is not an issue.
1. Yes, N28068 is the user. At this time, I am running the script manually. My plan is to schedule the script thru a job and the owner is going to be N28068 .
Thanks,
Sarwar
________________________________
From: Erik Wienhold <ewie@ewie.name>
Sent: Sunday, October 22, 2023 7:19 PM
To: M Sarwar <sarwarmd02@outlook.com>
Cc: Ron <ronljohnsonjr@gmail.com>; pgsql-admin@lists.postgresql.org <pgsql-admin@lists.postgresql.org>
Subject: Re: Need to run pg_dump from the laptop without entering the password
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: sarwarmd02@outlook.com, ewie@ewie.name, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Need to run pg_dump from the laptop without entering the password
In-Reply-To: <DM4PR19MB59780C2425E2D6B8DB5AC26ED3D8A@DM4PR19MB5978.namprd19.prod.outlook.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox