Killing long running queries with user notification
This feature has been proposed with an implementation, but did not make it into version 12.  Maybe it will be in version 13.  (If you can test the patch and provide feedback, you can increase the odds of that happening)