Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group