=?ISO-8859-1?Q?St=E9phane_Pinel?= <spinel(at)noos(dot)fr> writes:
> theHost = PQhost(conn);
> after the PQhost call, "theHost" is unusable, whatever I try, I get a
> crash.
It looks to me like PQhost returns NULL if you are dealing with a local
connection.
regards, tom lane