Re: Dblink and ISDN

From: Joe Conway <mail(at)joeconway(dot)com>
To: Rod Taylor <rbt(at)zort(dot)ca>
Cc: Darko Prenosil <Darko(dot)Prenosil(at)finteh(dot)hr>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dblink and ISDN
Date: 2002-04-02 19:30:07
Message-ID: 3CAA06BF.3050007@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Rod Taylor wrote:
> Out of curiousity, what happens if the remove server is unavailable?
>

I tried it against a bogus IP, and this is what I got:

test=# select dblink_tok(t1.dblink_p,0) as f1, dblink_tok(t1.dblink_p,1)
as f2 from (select dblink('hostaddr=123.45.67.8
dbname=template1','select proname, prosrc from pg_proc WHERE proname
LIKE ''bytea%''') as dblink_p) as t1;
ERROR: dblink: connection error: could not connect to server:
Connection timed out
Is the server running on host 123.45.67.8 and accepting
TCP/IP connections on port 5432?

test=#

dblink just uses libpq to make a client connection, and thus inherits
libpq's response.

Joe

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-02 19:39:08 Re: timeout implementation issues
Previous Message Jessica Perry Hekman 2002-04-02 19:17:20 Re: timeout implementation issues