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

From Erik Wienhold
Subject Re: Comments in .pgpass file...
Date
Msg-id 45ce11f5-52bc-47d7-bb95-e1ba5725b72b@ewie.name
Whole thread Raw
In response to Comments in .pgpass file...  (Ron Johnson <ronljohnsonjr@gmail.com>)
Responses Re: Comments in .pgpass file...
List pgsql-admin
On 2024-05-21 03:01 +0200, Ron Johnson 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

How should libpq know where the password ends and the comment begins
while still accepting passwords that contain "#"?  The password is
everything between the 4th unescaped colon and the end of line.

This could be made explicit in the docs.  But the docs don't even say
that you can put entries and comments one the same line.

-- 
Erik



pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: Comments in .pgpass file...
Next
From: "David G. Johnston"
Date:
Subject: Re: Comments in .pgpass file...