pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: fully qualified domain names and .pgpass
Date: Tue, 4 Oct 2022 19:33:11 +0200
Message-ID: <20221004173311.uysuoi3uiynq6u23@alvherre.pgsql> (raw)
In-Reply-To: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com>

On 2022-Oct-04, Ron wrote:

> 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:

Maybe it would be simpler to do this using a service definition in the
~/.pg_service.conf file.
https://www.postgresql.org/docs/current/libpq-pgservice.html

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/





view thread (5+ messages)  latest in thread

Message-ID: <20221004173311.uysuoi3uiynq6u23@alvherre.pgsql>
Permalink:  ../20221004173311.uysuoi3uiynq6u23@alvherre.pgsql/
Also on:    postgresql.org/message-id/20221004173311.uysuoi3uiynq6u23@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, ronljohnsonjr@gmail.com
  Subject: Re: fully qualified domain names and .pgpass
  In-Reply-To: <20221004173311.uysuoi3uiynq6u23@alvherre.pgsql>
  References: <393e2cf2-847b-047a-fe31-3267ae41f0a6@gmail.com> <20221004173311.uysuoi3uiynq6u23@alvherre.pgsql>

* 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