Re: [INTERFACES] libpq problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [INTERFACES] libpq problem
Дата
Msg-id 20717.921163834@sss.pgh.pa.us
обсуждение исходный текст
Ответ на libpq problem  (Brian Eldridge <beldri@runesoft.com>)
Список pgsql-interfaces
Brian Eldridge <beldri@runesoft.com> writes:
> [on a Win 95 box] Whenever I try to connect to my Linux box, I get an
> "unknown host" error from libpq.  If I use the psql.exe that came with
> the libs, it works fine.

It kinda sounds like something is wrong with DNS lookup --- not on your
box as a whole, but just in your program.  Perhaps you are linking
against a broken resolver library, or some such?  Anyway, try putting
some debug printouts around the call to gethostbyname() in fe-connect.c;
I assume that must be the subroutine that's failing.  Find out what it's
being passed and what it's returning.

            regards, tom lane

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

Предыдущее
От: "Igor Sysoev"
Дата:
Сообщение: DBD-Pg-0.73 make failed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] threads and libpq