Re: Document spaces in .pgpass need to be escaped - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Document spaces in .pgpass need to be escaped
Date
Msg-id 2977366.1632932011@sss.pgh.pa.us
Whole thread Raw
In response to Document spaces in .pgpass need to be escaped  (James Coleman <jtc331@gmail.com>)
Responses Re: Document spaces in .pgpass need to be escaped  (James Coleman <jtc331@gmail.com>)
List pgsql-hackers
James Coleman <jtc331@gmail.com> writes:
> A coworker has a space in a Postgres password and noticed .pgpass
> didn't work; escaping it fixed the issue. That requirement wasn't
> documented (despite other escaping requirements being documented), so
> I've attached a patch to add that comment.

I looked at passwordFromFile() and I don't see any indication that
it treats spaces specially.  Nor does a quick test here confirm
this report.  So I'm pretty certain that this proposed doc change
is wrong.  Perhaps there's some other issue to investigate, though?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Some thoughts about the TAP tests' wait_for_catchup()
Next
From: Richard Yen
Date:
Subject: Re: Patch to allow pg_filedump to support reading of pg_filenode.map