pg.ddx.io pgsql-interfaces@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: David Giffin <david@agent911.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ken J. Wright <ken@ori-ind.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Win32 interface
Date: Fri, 3 Sep 1999 13:26:30 -0700 (PDT)
Message-ID: <Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com> (raw)
In-Reply-To: <12509.936369651@sss.pgh.pa.us>
I figured out what was happening... Or at least what seem to happen. When
I linked in lipq.lib it would return unknown hostname. I switched it to
the libpqdll.lib and it worked fine.
I thought that libpq.lib would statically complie postgres into the .exe
but it didn't seem to work.
David
On Fri, 3 Sep 1999, Tom Lane wrote:
> 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
>
view thread (12+ messages) latest in thread
Message-ID: <Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com> Permalink: ../Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com/ Also on: postgresql.org/message-id/Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-interfaces@postgresql.org Cc: david@agent911.com, tgl@sss.pgh.pa.us, ken@ori-ind.com Subject: Re: [INTERFACES] Win32 interface In-Reply-To: <Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com> References: <12509.936369651@sss.pgh.pa.us> <Pine.BSF.4.05.9909031323540.67440-100000@central.agent911.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox