Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2 - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2
Date
Msg-id 20190620070319.GH2660@paquier.xyz
Whole thread Raw
In response to Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2  (Michael Paquier <michael@paquier.xyz>)
Responses Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
List pgsql-bugs
On Thu, Jun 20, 2019 at 12:12:18PM +0900, Michael Paquier wrote:
> The discussion here is on 10, and the password file has does not
> enforce the flag either because it filters '\r' by itself.  So another
> solution may be to do the same thing as what's done in
> passwordFromFile()?

That still sounds like a good idea to do at the end.  So attached is
the Dr Evil's version I was thinking of, and that would be rather
back-patchable.  (Spoiler: not seriously tested.)

Thoughts?
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: "Rozboril, Robert"
Date:
Subject: PostgreSQL v11.3 - Records are deleted from child table if partitionkey of parent table is changed
Next
From: Fahar Abbas
Date:
Subject: Re: XSS Bug in Query View