dblink and hostname resolution problem

From: postgresql(dot)*(dot)thewild(at)spamgourmet(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: dblink and hostname resolution problem
Date: 2007-10-17 10:54:43
Message-ID: 4715E9F3.7050004@supermail.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

Both server can resolve this address though.
Is this a known issue ? Is there something I can do about it ?

Thansk a lot !

Regards
--
Arnaud

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christian Rengstl 2007-10-17 11:01:25 DROP VIEW lasts forever
Previous Message Sam Mason 2007-10-17 10:21:58 Re: insert continue on error