From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | David Giffin <david(at)agent911(dot)com> |
Cc: | "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>, pgsql-interfaces(at)postgreSQL(dot)org |
Subject: | Re: [INTERFACES] Win32 interface |
Date: | 1999-09-03 14:40:51 |
Message-ID: | 12509.936369651@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
David Giffin <david(at)agent911(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | José Carlos Faial | 1999-09-03 14:41:22 | Openlink Universal Data Access |
Previous Message | Stephen Wright | 1999-09-03 10:49:43 | UNSUBSCRIBE sjw@sun.ac.za |