Re: pgpass hostname and IP address

David G. Johnston <david.g.johnston@gmail.com>

From: "David G. Johnston" <david.g.johnston@gmail.com>
To: Ron Johnson <ron.l.johnson@cox.net>
Cc: "pgsql-general@lists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2018-03-10T04:26:37Z
Lists: pgsql-general
On Friday, March 9, 2018, Ron Johnson <ron.l.johnson@cox.net> wrote:

> (8.4 and 9.2, but soon to 9.6)
>
> If we sometimes access a db server by IP address, and sometimes by
> hostname, must we have two entries for each server+user (one with the
> hostname and the other with IP address), or is there a way to put them both
> on the same lin
>

 https://www.postgresql.org/docs/10/static/libpq-pgpass.html

So unless you can make a wildcard work you are stuck with two separate
lines.

David J.