Re: pgpass hostname and IP address

From: Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: pgpass hostname and IP address
Date: 2018-03-10 04:34:47
Message-ID: e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/09/2018 10:26 PM, David G. Johnston wrote:
> On Friday, March 9, 2018, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net
> <mailto:ron(dot)l(dot)johnson(at)cox(dot)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.

Yeah, I read that (well, the ones for my ancient versions), but hoped there
might be something I missed, or some obscure and clever trick.

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-03-10 05:11:06 Re: pgpass hostname and IP address
Previous Message David G. Johnston 2018-03-10 04:26:37 Re: pgpass hostname and IP address