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

From Tom Lane
Subject Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
Date
Msg-id 82724.1559412388@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2  (Jorge Gustavo Rocha <jgr@geomaster.pt>)
List pgsql-bugs
Jorge Gustavo Rocha <jgr@geomaster.pt> writes:
> Hi Tom,
> Thanks for looking at this.

> I've tried with \n and \r\n separators to make sure it wasn't the
> problem. I did a od -c to make sure the endings were the expected ones,
> and I found no difference between just \n or \r\n.

> The psql is able to deal with service=pg_trabalho, so I think libpq is
> reading the file without line end issues.

Yeah, that seems like it puts libpq in the clear, but then where are
things going wrong?  I wonder if psycopg2 is not just "passing the
connection parameters down to libpq", but is reading the service
file for itself (and failing to take care about newlines).

            regards, tom lane



pgsql-bugs by date:

Previous
From: Fahar Abbas
Date:
Subject: Re: BUG #15829: PdAdmin 4 gives a Server error trigger/sql/#110003#/properties.sqlwith VIEWS
Next
From: Jeff Janes
Date:
Subject: Re: inconsistent behaviour of json_to_record and friends withembedded json