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

From: Giuseppe Sacco <giuseppe(at)eppesuigoccas(dot)homedns(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Question about password character in ECPG's connection string
Date: 2019-08-27 10:40:36
Message-ID: edb3a9df78da4afe744afd7aacd3684ea96dc394.camel@eppesuigoccas.homedns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2019-08-27 11:13:27 Re: psql \copy hanging
Previous Message Arnaud L. 2019-08-27 10:34:31 Re: psql \copy hanging