Difference between revisions of "Pg cancel backend"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 +
* https://www.postgresql.org/docs/15/functions-admin.html#FUNCTIONS-ADMIN-SIGNAL
  
 
  SELECT pg_cancel_backend(__[[pid]]__);
 
  SELECT pg_cancel_backend(__[[pid]]__);
  
 +
<code>[[kill -9]]</code> in PostgreSQL:
 +
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 ==
 +
* <code>[[kill -9]]</code>
 +
* [[PostgreSQL System Administration Functions]]
  
 
== See also ==
 
== See also ==
 
* {{PostgreSQL}}
 
* {{PostgreSQL}}
 +
 +
[[Category:PostgreSQL]]

Latest revision as of 11:45, 16 December 2022

Advertising: