Kris Jurka <books@ejurka.com> writes:
> People want the query to be stopped, but they don't want their whole
> connection to be killed which is what your change does.
Can't you just "set statement_timeout = something" if you don't want to
let long queries complete?
regards, tom lane