Re: Comments in .pgpass file...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday, May 20, 2024, Ron Johnson <ronljohnsonjr@xxxxxxxxx> 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.

https://www.postgresql.org/docs/current/libpq-pgpass.html

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.


[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux