Re: Comments in .pgpass file... - Mailing list pgsql-admin

From David G. Johnston
Subject Re: Comments in .pgpass file...
Date
Msg-id CAKFQuwaBj0r88mzYU4aRgGbOKZB8OagxNkwa5Vt85j6KBOXjHg@mail.gmail.com
Whole thread Raw
In response to Comments in .pgpass file...  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-admin
On Monday, May 20, 2024, Ron Johnson <ronljohnsonjr@gmail.com> wrote:
It seems that psql (or maybe libpq) doesn't like trailing comments.

This works:
10.143.170.206:5432:*:11026270:Blarge

But this does not:
10.143.170.206:5432:*:11026270:Blarge # Host name: fubar

(Don't tell me to use DNS.  I would if the servers would stay in DNS.)

.pgpass is a libpq thing.


The docs in a bit round-a-bout way state that a comment line begins with the hashtag.  No other mention of comment formats are given.

David J.

pgsql-admin by date:

Previous
From: Ron Johnson
Date:
Subject: Comments in .pgpass file...
Next
From: Tom Lane
Date:
Subject: Re: Comments in .pgpass file...