pgpass option is not working with hostaddr parameter - Mailing list psycopg

From Murtuza Zabuawala
Subject pgpass option is not working with hostaddr parameter
Date
Msg-id 2074815628.235022.1511244163660@mail.yahoo.com
Whole thread Raw
Responses Re: pgpass option is not working with hostaddr parameter  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Hi,

I'm trying to connect to postgres database server v.10 using latest version of psycopg2(2.7.3.2) + Python3.6.

The issue is that if I use pgpass parameter with host parameter in psycopg2's connect() method I'm able to connect to postgres server properly but with the same pgpass parameter (as well as pgpass file) and if I use the hostaddr parameter instead of host parameter I get error "No pasword supplied"

Is it a bug with psycopg2 or libpq?


Regards,
Murtuza Zabuawala

psycopg by date:

Previous
From: Stephen Frost
Date:
Subject: Migration to PGLister - After
Next
From: Daniele Varrazzo
Date:
Subject: Re: pgpass option is not working with hostaddr parameter