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