Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jorge Gustavo Rocha <jgr(at)geomaster(dot)pt>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
Date: 2019-06-20 07:03:19
Message-ID: 20190620070319.GH2660@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
service-libpq-crlf-v1.patch text/x-diff 1.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Fahar Abbas 2019-06-20 07:10:30 Re: XSS Bug in Query View
Previous Message Rozboril, Robert 2019-06-20 06:59:25 PostgreSQL v11.3 - Records are deleted from child table if partition key of parent table is changed