Re: ECPG could not connect to the database. - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: ECPG could not connect to the database.
Date
Msg-id Pine.LNX.4.30.0101081818300.760-100000@peter.localdomain
Whole thread Raw
In response to Re: ECPG could not connect to the database.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ECPG could not connect to the database.
Re: ECPG could not connect to the database.
List pgsql-general
Tom Lane writes:

> > Not exactly. It is possible to use PGHOST but you also can add the hostname
> > to the dbname.
>
> Have you tried it lately?  I suspect that you are depending on code that
> is not in libpq's current sources anymore.  I fully agree with Peter E's
> reasons for removing it, too.  We do not need to overload the definition
> of libpq's dbname parameter.

Ouch, it *is* documented in ecpg(1).  I guess if ecpg wants to provide
this syntax (which it probably should, since the "sql connect to" syntax
doesn't have any other provisions for host name, port, etc.) then it could
take the code from libpq (it's still in there I think) and do the parsing
before calling PQsetdbLogin().

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


pgsql-general by date:

Previous
From: Lamar Owen
Date:
Subject: Re: Version 7.1 when??
Next
From: Jeff Eckermann
Date:
Subject: RE: Help with SQL Function