Re: ECPG could not connect to the database.

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ECPG could not connect to the database.
Date: 2001-01-08 08:06:24
Message-ID: 20010108090624.A2425@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

> suppose there might be C libraries out there that are pickier. What
> is the platform showing this problem?

I'm not sure. I was mailed this by a user but don't know which platform he
uses. However, I can reproduce the problem on my Linux machine.

Michael
--
Michael Meskes
Michael(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-01-08 08:35:04 Re: ECPG could not connect to the database.
Previous Message Joshua Drake 2001-01-08 07:13:58 Re: load-balancing and online backup