Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jorge Gustavo Rocha <jgr@geomaster.pt>, pgsql-bugs@lists.postgresql.org
Date: 2019-06-20T07:03:19Z
Lists: pgsql-bugs
Attachments
- service-libpq-crlf-v1.patch (text/x-diff) patch v1
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
Commits
-
Fix failures to ignore \r when reading Windows-style newlines.
- 8c52b77ddea7 9.4.24 landed
- 6266654db7fa 9.5.19 landed
- ba27151d1eb0 9.6.15 landed
- cb65b454f87b 10.10 landed
- 11a0a4db3cdb 11.5 landed
- c58cf97f2fc4 12.0 landed
- b654714f9bcf 13.0 landed