Re: Question about password character in ECPG's connection string - Mailing list pgsql-general

From Giuseppe Sacco
Subject Re: Question about password character in ECPG's connection string
Date
Msg-id edb3a9df78da4afe744afd7aacd3684ea96dc394.camel@eppesuigoccas.homedns.org
Whole thread Raw
In response to Question about password character in ECPG's connection string  ("Egashira, Yusuke" <egashira.yusuke@jp.fujitsu.com>)
Responses RE: Question about password character in ECPG's connection string
List 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 by date:

Previous
From: "Arnaud L."
Date:
Subject: Re: psql \copy hanging
Next
From: Luca Ferrari
Date:
Subject: Re: psql \copy hanging