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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2
Дата
Msg-id 82491.1559409563@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2  (Jorge Gustavo Rocha <jgr@geomaster.pt>)
Re: BUG #15827: Unable to connect on Windows using pg_services.conf using Python psycopg2  (Jorge Gustavo Rocha <jgr@geomaster.pt>)
Список pgsql-bugs
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



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Robert Vollmert
Дата:
Сообщение: Re: inconsistent behaviour of json_to_record and friends withembedded json
Следующее
От: Jorge Gustavo Rocha
Дата:
Сообщение: Re: BUG #15827: Unable to connect on Windows using pg_services.confusing Python psycopg2