Re: Question about password character in ECPG's connection string

Поиск
Список
Период
Сортировка
От Giuseppe Sacco
Тема Re: Question about password character in ECPG's connection string
Дата
Msg-id edb3a9df78da4afe744afd7aacd3684ea96dc394.camel@eppesuigoccas.homedns.org
обсуждение исходный текст
Ответ на Question about password character in ECPG's connection string  ("Egashira, Yusuke" <egashira.yusuke@jp.fujitsu.com>)
Ответы RE: Question about password character in ECPG's connection string  ("Egashira, Yusuke" <egashira.yusuke@jp.fujitsu.com>)
Список pgsql-general
Hello Yusuke,

Il giorno mar, 27/08/2019 alle 07.29 +0000, Egashira, Yusuke ha
scritto:
[...]
> I referred the below documents.
> - CONNECT of ecpg: 
> https://www.postgresql.org/docs/9.5/ecpg-sql-connect.html
> - Connection string of libpq: 
> https://www.postgresql.org/docs/9.5/libpq-connect.html#LIBPQ-CONNSTRING
[...]

It seems to me that ECPG documentation does not allow specifying
username and/or password in the connection string. The correct syntax
should be:

EXEC SQL CONNECT TO "unix:postgresql://localhost/connectdb" USER
"myuser" IDENTIFIED BY "pass&word"

Bye,
Giuseppe




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

Предыдущее
От: "Arnaud L."
Дата:
Сообщение: Re: psql \copy hanging
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: psql \copy hanging