Re: Escaping ":" in .pgpass - code or docs bug? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Escaping ":" in .pgpass - code or docs bug?
Date
Msg-id 1324323646-sup-3128@alvh.no-ip.org
Whole thread Raw
In response to Re: Escaping ":" in .pgpass - code or docs bug?  (Richard Huxton <dev@archonet.com>)
Responses Re: Escaping ":" in .pgpass - code or docs bug?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Excerpts from Richard Huxton's message of lun dic 19 16:33:31 -0300 2011:
> On 19/12/11 16:48, Robert Haas wrote:
> > On Sat, Dec 17, 2011 at 3:27 AM, Ross Reedstrom<reedstrm@rice.edu>  wrote:
> >> This should either be fixed by changing the documentation to say to not escape
> >> colons or backslashes in the password part, only, or modify this function
> >> (PasswordFromFile) to silently unescape the password string. It already copies
> >> it.
> >
> > My vote is for a doc correction in the back-branches and a behavior
> > change in master.
>
> Seems sensible - presumably mentioning "this will be corrected in 9.2"?
>
> It's clearly not what you'd call "urgent" since nobody else seems to
> have noticed before now.

Yeah, it is a pretty old bug -- this code was clearly written by some
rookie that didn't know very well what he was doing.

--
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Escaping ":" in .pgpass - code or docs bug?
Next
From: Alvaro Herrera
Date:
Subject: Re: Autonomous subtransactions