ECPG connect by URL doesn't work - Mailing list pgsql-bugs

From Peter Eisentraut
Subject ECPG connect by URL doesn't work
Date
Msg-id 200601311231.25744.peter_e@gmx.net
Whole thread Raw
Responses Re: ECPG connect by URL doesn't work
List pgsql-bugs
According to this documentation

http://www.postgresql.org/docs/8.1/static/ecpg-connect.html

it should work to connect in ECPG like this:

EXEC SQL CONNECT TO tcp:postgresql://bell.credativ.de:5432/pei AS myconn USER pei IDENTIFIED BY 'geheim';

(Or perhaps with single quotes, but that doesn't make a difference.)

However, in the server logs I just see this:

FATAL:  database "'tcp:postgresql://bell.credativ.de:5432/pei'" does not exist

So apparently this URL parsing needs work.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-bugs by date:

Previous
From: Philipp Reisner
Date:
Subject: Re: Endless loop in ExecNestLoop
Next
From: Michael Meskes
Date:
Subject: Re: ECPG connect by URL doesn't work