postgres kill running query

Solutions on MaxInterview for postgres kill running query by the best coders in the world

showing results for - "postgres kill running query"
Maria José
18 Jul 2019
1--Stop the query normally
2SELECT pg_cancel_backend(pid);
3
4--Terminate immediately
5SELECT pg_terminate_backend(pid);