Re: dblink doesn't honor interrupts while waiting a result

From: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgresql-Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: dblink doesn't honor interrupts while waiting a result
Date: 2008-02-25 10:52:43
Message-ID: 47C29DFB.3050906@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marko Kreen wrote:
> On 2/25/08, Florian G. Pflug <fgp(at)phlo(dot)org> wrote:
>> I'm not sure how a proper fix for this could look like, since the
>> blocking actually happens inside libpq - but this certainly makes
>> working with dblink painfull...
>
> Proper fix would be to use async libpq API, then loop on poll(2)
> with small timeout. You can look at pl/proxy for example code.
Ah, cool, I'll check out pl/proxy.

regards, Florian Pflug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kaare Rasmussen 2008-02-25 13:08:34 Questions about indexes with text_pattern_ops
Previous Message Marko Kreen 2008-02-25 10:35:09 Re: dblink doesn't honor interrupts while waiting a result