Difference between revisions of "Pg cancel backend"

From wikieduonline
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
<code>[[kill -9]]</code> in PostgreSQL:
 
<code>[[kill -9]]</code> in PostgreSQL:
 
  SELECT [[pg_terminate_backend]](__pid__);
 
  SELECT [[pg_terminate_backend]](__pid__);
 +
 +
SELECT [[pg_terminate_backend]](__pid__) from [[pg_stat_activity]];
 +
 +
 +
select [[pg_terminate_backend]](procpid) from pg_stat_activity where datname = 'your-db';
  
 
== Related ==
 
== Related ==
 
* <code>[[kill -9]]</code>
 
* <code>[[kill -9]]</code>
 +
* [[PostgreSQL System Administration Functions]]
  
 
== See also ==
 
== See also ==

Latest revision as of 11:45, 16 December 2022

Advertising: