Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euWDn-0007mX-Cq for pgsql-general@arkaria.postgresql.org; Sat, 10 Mar 2018 04:35:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euWDl-0007ui-VT for pgsql-general@arkaria.postgresql.org; Sat, 10 Mar 2018 04:35:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1euWDl-0007uW-N6 for pgsql-general@lists.postgresql.org; Sat, 10 Mar 2018 04:35:01 +0000 Received: from eastrmfepo101.cox.net ([68.230.241.213]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1euWDd-0000ub-5G for pgsql-general@lists.postgresql.org; Sat, 10 Mar 2018 04:35:01 +0000 Received: from eastrmimpo305.cox.net ([68.230.241.237]) by eastrmfepo101.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20180310043447.SUGQ11711.eastrmfepo101.cox.net@eastrmimpo305.cox.net> for ; Fri, 9 Mar 2018 23:34:47 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo305.cox.net with cox id L4an1x00E1o04Vy014an4e; Fri, 09 Mar 2018 23:34:47 -0500 X-Authority-Analysis: v=2.2 cv=GPB4KqFK c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=x7bEGLp0ZPQA:10 a=r77TgQKjGQsHNAKrUKIA:9 a=kviXuzpPAAAA:8 a=epTmVMiNAAAA:8 a=50L6X8GGM2yGewO_yVwA:9 a=clRyozT0AwQyUwe2:21 a=rf0BKP9BjgAuxajc:21 a=QEXdDO2ut3YA:10 a=JEQ5OkoNp0EA:10 a=hX2al0Dm6NsA:10 a=pGLkceISAAAA:8 a=T568jMI182zdzzmpGYYA:9 a=czEOaRvbpE7uYtZq:21 a=r9ga29Y-S9nl-81q:21 a=Q5GnVN4n2sAUxgVH:21 a=_W_S_7VecoQA:10 a=qrIFiuKZe2vaD64auk6j:22 a=ndEWmUVY6Yapc0oHF_P4:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net Subject: Re: pgpass hostname and IP address To: pgsql-general@lists.postgresql.org References: <289728e3-c240-bfb3-2c0b-0016855beb03@cox.net> From: Ron Johnson Message-ID: Date: Fri, 9 Mar 2018 22:34:47 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------7EF90EB5486E2518F9F7614B" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------7EF90EB5486E2518F9F7614B Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 03/09/2018 10:26 PM, David G. Johnston wrote: > On Friday, March 9, 2018, Ron Johnson > 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. --------------7EF90EB5486E2518F9F7614B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit
On 03/09/2018 10:26 PM, David G. Johnston wrote:
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


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.
--------------7EF90EB5486E2518F9F7614B--