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