"Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com> writes:
> As for the polling, adding a poll to one or two strategic plaes (like
> the I/O subsystem) should cover 99% of the reasonable cases...
Put it into the macro that checks for query cancel.
regards, tom lane