 AS $function$
 SELECT user_management.drop_user(username);
 $function$
-SECURITY DEFINER;
+SECURITY DEFINER SET search_path to 'pg_catalog';
 
 REVOKE ALL ON FUNCTION drop_role(text) FROM public;
 GRANT EXECUTE ON FUNCTION drop_role(text) TO admin;

AS $function$
SELECT pg_terminate_backend(pid);
$function$
SECURITY DEFINER;

REVOKE ALL ON FUNCTION terminate_backend(integer) FROM public;
GRANT EXECUTE ON FUNCTION terminate_backend(integer) TO admin;

CREATE SCHEMA IF NOT EXISTS user_management;

GRANT USAGE ON SCHEMA user_management TO admin;

