Re: dblink doesn't honor interrupts while waiting a result - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: dblink doesn't honor interrupts while waiting a result
Date
Msg-id e51f66da0802250235v14594c77k9515d7114c9443f5@mail.gmail.com
Whole thread Raw
In response to dblink doesn't honor interrupts while waiting a result  ("Florian G. Pflug" <fgp@phlo.org>)
Responses Re: dblink doesn't honor interrupts while waiting a result  ("Florian G. Pflug" <fgp@phlo.org>)
List pgsql-hackers
On 2/25/08, Florian G. Pflug <fgp@phlo.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


pgsql-hackers by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: OSSP can be used in the windows environment now!
Next
From: "Florian G. Pflug"
Date:
Subject: Re: dblink doesn't honor interrupts while waiting a result