From: | postgresql(dot)*(dot)thewild(at)spamgourmet(dot)com |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: dblink and hostname resolution problem |
Date: | 2007-10-18 07:06:17 |
Message-ID: | 471705E9.2030007@supermail.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
+postgresql+thewild+ac82708ba6(dot)postgresql(dot)*(dot)thewild#spamgourmet(dot)com(at)spamgourmet(dot)com a écrit :
> Hi list!
>
> I am using DBLink on a Win32 system running PostgreSQL 8.2 to query a table on another similar system (Win32 / PostgreSQL 8.2).
> If I query the server with dblink('hostaddr=ip_address ...', ...), it works fine, but if I try to use the hostname instead (dblink('hostaddr=myserver.mydomain.com ...', ...)), I have an error :
>
> ERROR: could not establish connection
> DETAIL: could not translate host name "myserver.mydomain.com" to address: Unknown server error
>
OK I've got it : I had to use "host=..." instead of "hostaddr=...".
Seems obvious now that I know it.
Regards
--
Arnaud
From | Date | Subject | |
---|---|---|---|
Next Message | Jorge Godoy | 2007-10-18 09:07:07 | Re: Suggestions for Remote Procedure Calls from PG, please? |
Previous Message | Ow Mun Heng | 2007-10-18 06:40:05 | Re: Poor Plan selected w/ not provided a date/time but selecting date/time from a table |