In case someone is facing the same problem again, solution is to add * in
.pgpass in place of ip address.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/pgpass-being-ignored-tp5760421p5815268.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.