fully qualified domain names and .pgpass

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: fully qualified domain names and .pgpass
Date: 2022-10-04 17:02:15
Message-ID: 393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Sometimes (both interactively and via script) I access a remote Pg server
via just the bare host name "foobar", and other times via the FQDN
"foobar.example.com".

I've only been able to get this to work by having two lines in the .pgpass file:

foobar:5432:postgres:Allegedly.Strong.Password
foobar.example.com:5432:postgres:Allegedly.Strong.Password

But I'd rather have only one line.  Is there any way to do that?

--
Angular momentum makes the world go 'round.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2022-10-04 17:33:11 Re: fully qualified domain names and .pgpass
Previous Message John Bolliger 2022-10-04 01:01:38 Re: Incorrect resource manager data checksum in record with zfs and compression