Re: [INTERFACES] Win32 interface

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] Win32 interface
Дата
Msg-id 12509.936369651@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [INTERFACES] Win32 interface  (David Giffin <david@agent911.com>)
Ответы Re: [INTERFACES] Win32 interface
Список pgsql-interfaces
David Giffin <david@agent911.com> writes:
> Yep I'm using the PQconnectDB("host=blah user=blah dbname=blah");
> I noticed that psql.c uses the PQsetdbLogin maybe I should switch to that
> function if this one is broken? Would have to parse a little extra but..
>>>> 
>>>> connectDB() --  unknown hostname: mobile

Assuming that "mobile" is the hostname you gave it, then parsing the
connectinfo string is not the problem.

The error message is coming out because gethostbyname() is failing ---
cf. connectDB() in interfaces/libpq/fe-connect.c.  (Or, perchance,
it is succeeding but delivering a non-INET address?  Seems unlikely
but if your LAN runs on non-TCP protocols then that's possible.)

My guess is that there is something broken with DNS name resolution
on your setup.  Hard to tell what from this much info.  You might
try making a one-liner program that just calls gethostbyname, and
work on debugging that simpler situation.
        regards, tom lane


В списке pgsql-interfaces по дате отправления:

Предыдущее
От: José Carlos Faial
Дата:
Сообщение: Openlink Universal Data Access
Следующее
От: "Moray McConnachie"
Дата:
Сообщение: Re: [INTERFACES] Openlink Universal Data Access