When we want to kill a process in postgresql, we are currently using a command like:
KILL 34008;
However the right way to do this in postgresql is actually :
select pg_cancel_backend(34008);
This should be a simple fix but I don't have a Delphi setup to do a PR.