Re: Comments in .pgpass file...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Comments in .pgpass file...
Date: 2024-05-21 01:09:59
Message-ID: 3720222.1716253799@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ron Johnson <ronljohnsonjr(at)gmail(dot)com> writes:
> It seems that psql (or maybe libpq) doesn't like trailing comments.

Why would you think it would take that? The manual says that lines
beginning with '#' are comments, but not more than that.

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

If that acted as a comment, it'd be impossible to use passwords
containing '#'.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Erik Wienhold 2024-05-21 01:18:14 Re: Comments in .pgpass file...
Previous Message David G. Johnston 2024-05-21 01:07:21 Re: Comments in .pgpass file...