pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: pgpass hostname and IP address
Date: Fri, 9 Mar 2018 22:34:47 -0600
Message-ID: <e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net> (raw)
In-Reply-To: <L4Sk1x00w1DF5NZ014SmXN>
References: <289728e3-c240-bfb3-2c0b-0016855beb03@cox.net>
	<L4Sk1x00w1DF5NZ014SmXN>

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

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.

view thread (5+ messages)  latest in thread

Message-ID: <e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net>
Permalink:  ../e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net/
Also on:    postgresql.org/message-id/e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ron.l.johnson@cox.net
  Subject: Re: pgpass hostname and IP address
  In-Reply-To: <e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net>
  References: <289728e3-c240-bfb3-2c0b-0016855beb03@cox.net> <L4Sk1x00w1DF5NZ014SmXN> <e7cf092d-7294-62d3-7552-c90d0ac84cf6@cox.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox