pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron Johnson <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Comments in .pgpass file...
Date: Mon, 20 May 2024 21:09:59 -0400
Message-ID: <3720222.1716253799@sss.pgh.pa.us> (raw)
In-Reply-To: <CANzqJaBQ+t4JmLCQspU1Tyi=+oQsdcL_q4e3r93n976vC2f=vQ@mail.gmail.com>
References: <CANzqJaBQ+t4JmLCQspU1Tyi=+oQsdcL_q4e3r93n976vC2f=vQ@mail.gmail.com>

Ron Johnson <ronljohnsonjr@gmail.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





view thread (9+ messages)  latest in thread

Message-ID: <3720222.1716253799@sss.pgh.pa.us>
Permalink:  ../3720222.1716253799@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3720222.1716253799@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Comments in .pgpass file...
  In-Reply-To: <3720222.1716253799@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox