Answer the question
In order to leave comments, you need to log in
PostgreSQL pid, how to find it correctly?
The iotop command shows us that the disk is heavily loading the process -
postgres: ::1(59629) COMMIT
On the advice of the documentation www.postgresql.org/docs/9.1/static/monitoring-stat... we make such a request (shows the current executable database requests) -
SELECT pg_stat_get_backend_pid(s.backendid) AS procpid,
pg_stat_get_backend_activity(s.backendid) AS current_query
FROM (SELECT pg_stat_get_backend_idset() AS backendid) AS s;
Answer the question
In order to leave comments, you need to log in
Look elsewhere:
and then if need beSELECT pg_cancel_backend(procpid);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question