PQhost() Returns NULL on Connection

From: Keary Suska <hierophant(at)pcisys(dot)net>
To: Postgres-Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: PQhost() Returns NULL on Connection
Date: 2006-04-26 20:08:40
Message-ID: C0752F68.29071%hierophant@pcisys.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Why would PQhost() return NULL on a valid connection? I would assume that it
would return either a host name or Unix domain socket name/path regardless
of whether the "host" parameter was passed at connect time. Is it because it
won't return a value when a domain socket is used? If so, is there a way to
get the domain socket used?

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2006-04-26 23:59:38 Re: PQhost() Returns NULL on Connection
Previous Message Bruce Momjian 2006-04-24 17:14:11 Re: Receiving SIGPIPE for PQfinish(<broken-connection>)