Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgres kill running query

--Stop the query normally
SELECT pg_cancel_backend(pid);

--Terminate immediately
SELECT pg_terminate_backend(pid);
 
PREVIOUS NEXT
Tagged: #postgres #kill #running #query
ADD COMMENT
Topic
Name
2+8 =