Marko Kreen wrote:
> 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.
Ah, cool, I'll check out pl/proxy.
regards, Florian Pflug