Re: Logging on without prompt for password - Mailing list pgsql-admin

From Will McCormick
Subject Re: Logging on without prompt for password
Date
Msg-id CA+jgkY47BB99qf=FFNL0hSKFUVt-hJou-Z9t_-FSSCvTFf2Ohg@mail.gmail.com
Whole thread Raw
In response to Logging on without prompt for password  ("Rossi, Maria" <maria.rossi@jackson.com>)
Responses Re: Logging on without prompt for password
List pgsql-admin
Have you tried PGPASSWORD env variable and unset it. I find it especially useful when scripting.

On Tue, Oct 20, 2015 at 10:38 AM, Rossi, Maria <maria.rossi@jackson.com> wrote:

Hi,

 

 

Is there a way of enabling a user to logon without being prompted for password?  I know  there is the .pgpass file,  but this file requires the port#  and my server has several postgres clusters with different port#.    So,  am  not sure if I can use the .pgpass file.

 

And at the pg_hba.conf file,  the id already has ‘trust’ method, but it is still being prompted for password.

 

This id will  be used for automated scanning and needs to run pg_dumpall.

 

Thanks.

 

Maria A Rossi

Database Administration

PGDS (US)

email: maria.rossi@us.pgds.com
cell phone: 517.256.4392

work phone: 517.367.3099
work phone extension: 23099

 


pgsql-admin by date:

Previous
From: "Rossi, Maria"
Date:
Subject: Logging on without prompt for password
Next
From: "David G. Johnston"
Date:
Subject: Re: Logging on without prompt for password