Function KilIUserConnections could be improved in the following ways:
[x] Call KillConnection instead of calling pg_terminate_backend. Calling the former means we will get the benefit of logging and other things we might do in future when we initiate a kill.
[x] Returning a table of (PID, boolean) instead of returning a table of just boolean
Function
KilIUserConnections
could be improved in the following ways:KillConnection
instead of callingpg_terminate_backend
. Calling the former means we will get the benefit of logging and other things we might do in future when we initiate a kill.(PID, boolean)
instead of returning a table of justboolean
KillConnection