Keary Suska <hierophant(at)pcisys(dot)net> writes:
> Is it possible to use PQcancel() to cancel a blocking call, such as a call
> to PQexec?
Sure. Look at psql for an example. You probably need to call PQcancel
from a signal handler, but there's a signal-safe variant for that.
regards, tom lane
In response to
pgsql-interfaces by date
|Next:||From: Keary Suska||Date: 2008-07-10 22:51:45|
|Subject: Re: libPQ -Canceling Blocking Calls |
|Previous:||From: Keary Suska||Date: 2008-07-10 20:09:03|
|Subject: libPQ -Canceling Blocking Calls |