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

From Tom Lane
Subject Re: ECPG could not connect to the database.
Date
Msg-id 13887.978942904@sss.pgh.pa.us
Whole thread Raw
In response to Re: ECPG could not connect to the database.  (Michael Meskes <meskes@postgresql.org>)
Responses Re: ECPG could not connect to the database.
List pgsql-general
Michael Meskes <meskes@postgresql.org> writes:
> On Sun, Jan 07, 2001 at 02:52:07PM -0500, Tom Lane wrote:
>> I do not see how that can be ecpg's fault --- it just does
>>
>>    this->connection = PQsetdbLogin(NULL, NULL, NULL, NULL, dbname, user, passwd);
>>
>> which means that any specification of the host must come from the PGHOST
>> environment variable and will be handled entirely inside libpq.

> 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.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Meskes
Date:
Subject: Re: ECPG could not connect to the database.
Next
From: Frank Joerdens
Date:
Subject: Re: PHP and PostgreSQL