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

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Florian G(dot) Pflug" <fgp(at)phlo(dot)org>
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:35:09
Message-ID: e51f66da0802250235v14594c77k9515d7114c9443f5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

--
marko

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2008-02-25 10:52:43 Re: dblink doesn't honor interrupts while waiting a result
Previous Message Hiroshi Saito 2008-02-25 09:44:07 Re: OSSP can be used in the windows environment now!