Re: ECPG could not connect to the database.
| От | Tom Lane |
|---|---|
| Тема | Re: ECPG could not connect to the database. |
| Дата | |
| Msg-id | 13887.978942904@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: ECPG could not connect to the database. (Michael Meskes <meskes@postgresql.org>) |
| Ответы |
Re: ECPG could not connect to the database.
|
| Список | 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 по дате отправления: