From: Tom Lane <tgl@sss.pgh.pa.us>
To: jgr@geomaster.pt
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
Date: Sat, 01 Jun 2019 13:19:23 -0400
Message-ID: <82491.1559409563@sss.pgh.pa.us> (raw)
In-Reply-To: <15827-e6ba53a3a7ed543c@postgresql.org>
References: <15827-e6ba53a3a7ed543c@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> I'm using `pg_services.conf` to provide access to a Postgresql database.
> ...
> From other's feedback, I've tried to use the line separators in
> pg_services.conf with \n and \r\n, but the result is the same (because there
> is strange newline after the host address).
Hm, can you double check that? It sure looks like something is failing to
remove the "\r" from that line of pg_service.conf. Which is odd, because
libpq opens the file in text mode so the Windows C library ought to take
care of reducing "\r\n" to "\n".
It seems like in general, maybe we ought to trim trailing spaces from
pg_service.conf entries automatically. But I'm not entirely sure if
that would fix this problem...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, jgr@geomaster.pt, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
In-Reply-To: <82491.1559409563@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox