Re: fully qualified domain names and .pgpass

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Ron <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: fully qualified domain names and .pgpass
Date: 2022-10-04 17:33:11
Message-ID: 20221004173311.uysuoi3uiynq6u23@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2022-10-04 17:34:20 Re: fully qualified domain names and .pgpass
Previous Message Ron 2022-10-04 17:02:15 fully qualified domain names and .pgpass