Jessica Perry Hekman <jphekman(at)dynamicdiagrams(dot)com> writes:
> I definitely agree that implementing it in the backend would be the best
> plan, if it's feasible. I just can't figure out how to pass information
> back to the driver that the request has been cancelled (and that, in
> JDBC's case, a SQLException should be thrown). Any thoughts about that?
Why would this be any different from a cancel-signal-instigated abort?
You'd be reporting elog(ERROR) in any case.
regards, tom lane