From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: fully qualified domain names and .pgpass
Date: Tue, 4 Oct 2022 12:02:15 -0500
Message-ID: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com> (raw)
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.
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: ronljohnsonjr@gmail.com
Subject: Re: fully qualified domain names and .pgpass
In-Reply-To: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com>
References: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com>
* 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